Re: Approaches to making io_submit not block

From: Christoph Hellwig
Date: Thu Sep 01 2011 - 12:46:09 EST


On Thu, Sep 01, 2011 at 09:34:52AM -0700, Jeremy Allison wrote:
> >
> > (to match the naming of something like O_CLOEXEC) and be available to set
> > with F_SETFD via an fcntl and dup3 call ?
>
> Ah, looking at fcntl - do you want to set/get this via F_SETFD/F_GETFD,
> or via F_SETFL/F_GETFL ? i.e. is this a file descritor flag, or a status
> flag ? I'd guess a file descriptor flag but I'm not sure of the difference
> here..

F_SETFD/F_GETFD operates on an entry in the fd table, e.g. separately
if you have duped fds. That's exactly what we do _not_ want here.

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/