In article <200009151200.OAA00850@mailhost.ri.silicomp.fr>,
Eric PAIRE <email@example.com> wrote:
>In open.c:do_truncate(), the call to notify_change() is protected by
>the inode->i_sem, which seems to me useless, and thus can be removed.
And exactly how do you now protect against the race of another process
doing a write() at the same time, and in particular the updates of
As far as I can tell, you removing the semaphore means that _nothing_
protects inode->i_size any more, and you can get basically random
values. That would be bad.
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to firstname.lastname@example.org
Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Sat Sep 23 2000 - 21:00:21 EST