Dave Chinner b870553cde xfs: fix stray dquot unlock when reclaiming dquots
When we fail to get a dquot lock during reclaim, we jump to an error
handler that unlocks the dquot. This is wrong as we didn't lock the
dquot, and unlocking it means who-ever is holding the lock has had
it silently taken away, and hence it results in a lock imbalance.

Found by inspection while modifying the code for the numa-lru
patchset. This fixes a random hang I've been seeing on xfstest 232
for the past several months.

cc: <stable@vger.kernel.org>
Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Ben Myers <bpm@sgi.com>
2012-11-29 14:24:03 -06:00
..
2012-11-19 20:11:24 -06:00
2012-11-14 15:15:08 -06:00
2012-11-19 20:11:24 -06:00
2012-11-15 21:34:55 -06:00
2012-11-19 20:11:24 -06:00
2012-11-14 15:15:08 -06:00
2012-10-17 13:42:25 -05:00
2012-05-14 16:20:54 -05:00
2012-11-14 15:12:45 -06:00
2012-11-19 20:11:24 -06:00
2012-11-19 20:18:41 -06:00
2012-05-14 16:21:00 -05:00
2012-09-18 01:01:39 -07:00
2012-11-19 20:11:24 -06:00
2012-10-17 12:01:25 -05:00
2012-05-14 16:21:00 -05:00
2012-07-31 09:45:48 +04:00