Re: Approaches to making io_submit not block

From: Christoph Hellwig
Date: Thu Sep 01 2011 - 12:34:50 EST


On Thu, Sep 01, 2011 at 09:31:07AM -0700, Jeremy Allison wrote:
> > We'd define a new O_LOCKS_WHATEVER flag for it, which gets set either
> > using fcntl(..., F_SETFL, ...) or dup3. All in all that should be less
> > than 50 lines of code in the kernel.
>
> Ok, so it'd be set at open() time, say:
>
> O_CLOLOCK_PERSIST
>
> (to match the naming of something like O_CLOEXEC) and be available to set
> with F_SETFD via an fcntl and dup3 call ?

Yes, that's the idea.

--
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/