Vladimir V. Saveliev wrote:
Hello

On Thursday 11 January 2007 04:00, Nick Piggin wrote:

That's racy, unfortunately :P



Sorry, please, explain what is racy.
reiserfs_truncate and reiserfs_release call that function after they have 
inode's mutex locked.

Calling truncate inside i_size (ie. vmtruncate_range is also racy), because
of the way that the pagefault side of the equation works (eg. truncate_count).

But if you're only calling truncate on files that are never mmapped, then I
think that race should disappear.

--
SUSE Labs, Novell Inc.
Send instant messages to your online friends http://au.messenger.yahoo.com
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to