summaryrefslogtreecommitdiff
path: root/fs/ioctl.c
diff options
context:
space:
mode:
authorBenjamin Marzinski <bmarzins@redhat.com>2011-01-15 04:39:16 (GMT)
committerSteven Whitehouse <swhiteho@redhat.com>2011-01-18 14:28:29 (GMT)
commit23c3010808de86f21436eb822aacfa551bfc17e4 (patch)
tree56b7176fdeb0dd453b88969dbecba7afcc39883f /fs/ioctl.c
parente6f597a1425b5af64917be3448b29e2d5a585ac8 (diff)
downloadlinux-fsl-qoriq-23c3010808de86f21436eb822aacfa551bfc17e4.tar.xz
GFS2: remove iopen glocks from cache on failed deletes
When a file gets deleted on GFS2, if a node can't get an exclusive lock on the file's iopen glock, it punts on actually freeing up the space, because another node is using the file. When it does this, it needs to drop the iopen glock from its cache so that the other node can get an exclusive lock on it. Now, gfs2_delete_inode() sets GL_NOCACHE before dropping the shared lock on the iopen glock in preparation for grabbing it in the exclusive state. Since the node needs the glock in the exclusive state, dropping the shared lock from the cache doesn't slow down the case where no other nodes are using the file. Signed-off-by: Benjamin Marzinski <bmarzins@redhat.com> Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/ioctl.c')
0 files changed, 0 insertions, 0 deletions