Andreas Gruenbacher d0920a9cd7 gfs2: Allow gfs2_xattr_set to be called with the glock held
On the following call path:

  gfs2_setattr -> setattr_prepare -> ... ->
    cap_inode_killpriv -> ... ->
      gfs2_xattr_set

the glock is locked in gfs2_setattr, so check for recursive locking in
gfs2_xattr_set as gfs2_xattr_get already does.  While at it, get rid of
need_unlock in gfs2_xattr_get.

Fixes xfstest generic/093.

Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Acked-by: Abhijith Das <adas@redhat.com>
Signed-off-by: Bob Peterson <rpeterso@redhat.com>
2017-10-31 14:26:59 +01:00
..
2016-05-12 22:28:05 -04:00
2017-10-31 14:26:33 +01:00
2017-10-31 14:26:33 +01:00
2016-06-27 09:47:09 -05:00
2016-06-27 09:47:08 -05:00
2017-09-25 12:32:33 -05:00
2017-08-25 18:47:18 -05:00
2014-05-14 10:04:34 +01:00
2016-06-07 13:41:38 -06:00
2017-08-30 08:14:27 -05:00
2017-04-19 08:25:43 -04:00
2012-01-11 09:23:05 +00:00
2017-10-31 14:26:56 +01:00
2017-08-25 18:47:18 -05:00
2015-12-06 21:25:17 -05:00