diff options
author | Andreas Gruenbacher <agruenba@redhat.com> | 2017-10-13 00:39:38 +0200 |
---|---|---|
committer | Andreas Gruenbacher <agruenba@redhat.com> | 2017-10-31 14:26:59 +0100 |
commit | d0920a9cd7e735c429c510b523a100db82c937a1 (patch) | |
tree | cbe73885ffc963f5743dd72108640a38b1d282e9 /fs/read_write.c | |
parent | b2623c2fe6eb1f757eff5a8fb515fe584caac667 (diff) | |
download | linux-d0920a9cd7e735c429c510b523a100db82c937a1.tar.bz2 |
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>
Diffstat (limited to 'fs/read_write.c')
0 files changed, 0 insertions, 0 deletions