GFS2: Don't cache iopen glocks
authorBob Peterson <rpeterso@redhat.com>
Wed, 29 May 2013 15:51:52 +0000 (11:51 -0400)
committerSteven Whitehouse <swhiteho@redhat.com>
Mon, 3 Jun 2013 15:40:22 +0000 (16:40 +0100)
commita6a4d98b0124b5d3befe8b3a99f51f1b4fcc6dcf
treec9da72b651e1c06ac14804d661f1dfbf4e8df75a
parente8830d8856e3ad61067dd46c05438b0d75a0441a
GFS2: Don't cache iopen glocks

This patch makes GFS2 immediately reclaim/delete all iopen glocks
as soon as they're dequeued. This allows deleters to get an
EXclusive lock on iopen so files are deleted properly instead of
being set as unlinked.

Signed-off-by: Bob Peterson <rpeterso@redhat.com>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
fs/gfs2/inode.c
fs/gfs2/super.c