Re: [GIT PULL] please pull file-locking related changes for v3.20

From: One Thousand Gnomes
Date: Thu Feb 26 2015 - 06:02:20 EST


On Tue, 17 Feb 2015 11:13:39 -0800
Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx> wrote:

> On Tue, Feb 17, 2015 at 11:08 AM, J. Bruce Fields <bfields@xxxxxxxxxxxx> wrote:
> >
> > I agree that it's weird, but I think it's what we're stuck with.
>
> And if by "weird" you mean "flock is really not a well-defined or sane
> interface", I'll agree with you.
>
> That said, I'm not at all sure about the "we're stuck with it". We can
> improve the semantics without anybody noticing, because it's not like
> anybody could *depend* on the weaker semantics - they needed
> particular races and timings to hit anyway.

The BSD implementation does not documented such a race, or indeed appear
to have one. That implies that nothing using flock should have this
problem.

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