]> git.karo-electronics.de Git - linux-beck.git/commit
GFS2: Always use iopen glock for gl_deletes
authorBob Peterson <rpeterso@redhat.com>
Fri, 4 Dec 2015 18:57:00 +0000 (12:57 -0600)
committerBob Peterson <rpeterso@redhat.com>
Fri, 18 Dec 2015 17:02:52 +0000 (11:02 -0600)
commit5ea31bc0a6524b4fee8dc9ae8005d4a114a79812
tree27ee8727bcd8b74b71f91a1caa1b8153a8e096a2
parent783013c0f5c7263a31703b15aeebbac279b4d4fe
GFS2: Always use iopen glock for gl_deletes

Before this patch, when function try_rgrp_unlink queued a glock for
delete_work to reclaim the space, it used the inode glock to do so.
That's different from the iopen callback which uses the iopen glock
for the same purpose. We should be consistent and always use the
iopen glock. This may also save us reference counting problems with
the inode glock, since clear_glock does an extra glock_put() for the
inode glock.

Signed-off-by: Bob Peterson <rpeterso@redhat.com>
fs/gfs2/rgrp.c