Abhijith Das f1213cacc7 GFS2: Fix race in gfs2_rs_alloc
QE aio tests uncovered a race condition in gfs2_rs_alloc where it's possible
to come out of the function with a valid ip->i_res allocation but it gets
freed before use resulting in a NULL ptr dereference.

This patch envelopes the initial short-circuit check for non-NULL ip->i_res
into the mutex lock. With this patch, I was able to successfully run the
reproducer test multiple times.

Resolves: rhbz#878476
Signed-off-by: Abhi Das <adas@redhat.com>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
2013-01-02 10:04:53 +00:00
..
2011-07-25 14:30:23 -04:00
2012-11-07 13:33:17 +00:00
2010-09-20 11:18:16 +01:00
2012-11-13 09:54:54 +00:00
2008-06-27 09:39:44 +01:00
2012-11-07 13:31:07 +00:00
2011-10-21 12:39:41 +01:00
2012-11-15 10:17:22 +00:00
2013-01-02 10:04:00 +00:00
2012-04-24 16:44:34 +01:00
2011-05-10 13:12:49 +01:00
2012-08-04 12:15:40 +04:00
2012-11-15 10:17:22 +00:00
2013-01-02 10:04:53 +00:00
2012-11-07 13:33:17 +00:00
2010-05-21 18:31:20 -04:00
2012-01-11 09:23:05 +00:00
2012-04-24 16:44:34 +01:00
2012-11-07 13:33:17 +00:00
2009-12-16 12:16:49 -05:00