diff options
author | david m. richter <richterd@citi.umich.edu> | 2007-07-31 09:39:12 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-08-01 00:39:42 +0200 |
commit | 9700382c3c9ff3e673e587084d76eedb3ba88668 (patch) | |
tree | 57ed58d87e765323692e463c8b7ee64f702dff0d /sound | |
parent | use __val in __get_unaligned (diff) | |
download | linux-9700382c3c9ff3e673e587084d76eedb3ba88668.tar.xz linux-9700382c3c9ff3e673e587084d76eedb3ba88668.zip |
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 <richterd@citi.umich.edu>
Signed-off-by: "J. Bruce Fields" <bfields@citi.umich.edu>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'sound')
0 files changed, 0 insertions, 0 deletions