From: david m. richter Date: Tue, 31 Jul 2007 07:39:12 +0000 (-0700) Subject: VFS: fix a race in lease-breaking during truncate X-Git-Tag: v2.6.23-rc2~57 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9700382c3c9ff3e673e587084d76eedb3ba88668;p=pandora-kernel.git VFS: fix a race in lease-breaking during truncate It is possible that another process could acquire a new file lease right after break_lease() is called during a truncate, but before lease-granting is disabled by the subsequent get_write_access(). Merely switching the order of the break_lease() and get_write_access() calls prevents this race. Signed-off-by: David M. Richter Signed-off-by: "J. Bruce Fields" Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed