Bob Peterson 44f52122a2 GFS2: Check rs_free with rd_rsspin protection
For the last process to close a file opened for write, function
gfs2_rsqa_delete was deleting the file's inode's block reservation
out of the rgrp reservations tree. Then it was checking to make sure
rs_free was 0, but it was performing the check outside the protection
of rd_rsspin spin_lock. The rd_rsspin spin_lock protection is needed
to prevent a race between the process freeing the reservation and
another who is allocating a new set of blocks inside the same rgrp
for the same inode, thus changing its value.

Signed-off-by: Bob Peterson <rpeterso@redhat.com>
2016-07-12 11:48:22 -05:00
..
2016-05-12 22:28:05 -04:00
2016-05-12 22:28:05 -04:00
2016-06-27 10:03:12 -05:00
2014-03-03 13:50:12 +00:00
2016-06-27 09:47:09 -05:00
2016-06-27 09:47:08 -05:00
2016-06-27 09:47:09 -05:00
2016-06-27 09:47:09 -05:00
2016-06-27 09:47:09 -05:00
2016-06-27 09:47:09 -05:00
2016-06-27 09:47:08 -05:00
2013-06-03 14:20:18 -07:00
2015-11-09 15:11:24 -08:00
2014-05-14 10:04:34 +01:00
2015-09-11 12:23:51 -07:00
2016-06-27 09:47:09 -05:00
2011-05-10 13:12:49 +01:00
2016-05-20 15:11:26 -07:00
2016-06-27 09:47:09 -05:00
2015-01-13 10:48:57 +00:00
2016-06-27 09:47:09 -05:00
2015-05-05 13:23:22 -05:00
2012-01-11 09:23:05 +00:00
2016-05-12 22:28:05 -04:00
2015-12-06 21:25:17 -05:00