[lkml]   [2000]   [Sep]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH] Useless inode semaphore locking in 2.4.0-test8
In article <>,
Eric PAIRE <> 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
Please read the FAQ at

 \ /
  Last update: 2005-03-22 12:45    [W:0.094 / U:1.072 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site