[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20080306151430.GD27894@ZenIV.linux.org.uk>
Date: Thu, 6 Mar 2008 15:14:30 +0000
From: Al Viro <viro@...IV.linux.org.uk>
To: Roland Dreier <rdreier@...co.com>
Cc: Christoph Hellwig <hch@....de>, linux-fsdevel@...r.kernel.org,
linux-kernel@...r.kernel.org,
Davide Libenzi <davidel@...ilserver.org>,
Avi Kivity <avi@...ranet.com>, kvm-devel@...ts.sourceforge.net,
akpm@...ux-foundation.org
Subject: Re: [PATCH/RFC 1/2] anon-inodes: Remove fd_install() from anon_inode_getfd()
On Wed, Feb 27, 2008 at 11:16:02AM -0800, Roland Dreier wrote:
> The anonymous inodes interface anon_inode_getfd() calls fd_install()
> for the newly created fd, which does not work for some use cases where
> the caller must do futher initialization before exposing the file to
> userspace. This is also probably not the safest interface, since the
> caller must be sure that it is OK if userspace closes the fd before
> anon_inode_getfd() even returns.
IMO that's a bad idea - majority of callers only care about fd and burdening
them with fd_install() is simply wrong. Separate helper function...
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists