david m. richter 9700382c3c 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>
2007-07-31 15:39:42 -07:00
..
2007-07-16 16:03:25 -05:00
2007-07-31 15:39:40 -07:00
2007-05-08 11:14:59 -07:00
2007-07-20 08:44:19 -07:00
2007-07-16 09:05:52 -07:00
2007-07-24 16:02:55 -07:00
2007-07-31 15:39:36 -07:00
2007-07-26 11:11:57 -07:00
2007-07-21 17:49:14 -07:00
2006-10-04 06:51:26 -06:00
2007-07-20 08:44:19 -07:00
2007-07-19 10:04:43 -07:00
2007-07-19 10:04:45 -07:00
2007-07-29 17:09:29 -07:00
2007-05-18 13:09:34 -07:00
2007-05-21 09:18:19 -07:00
2007-05-08 11:15:01 -07:00
2007-05-08 11:15:09 -07:00
2007-07-16 09:05:48 -07:00
2007-05-09 06:44:57 +02:00
2007-05-11 08:29:36 -07:00
2007-07-19 10:04:45 -07:00
2007-07-19 10:04:45 -07:00
2007-07-27 08:08:51 +02:00
2006-10-01 00:39:19 -07:00
2006-03-23 07:38:11 -08:00
2007-07-27 15:40:13 -07:00
2007-07-10 08:04:15 +02:00
2007-05-09 07:10:02 +02:00
2007-07-26 11:33:06 -07:00
2007-07-27 08:08:51 +02:00
2007-07-16 09:05:46 -07:00