]> git.baikalelectronics.ru Git - kernel.git/commit
GFS2: Wait for iopen glock dequeues
authorBob Peterson <rpeterso@redhat.com>
Mon, 7 Dec 2015 21:10:42 +0000 (15:10 -0600)
committerBob Peterson <rpeterso@redhat.com>
Fri, 18 Dec 2015 16:49:22 +0000 (10:49 -0600)
commitfc5d1610316c7ce7b63f5beb7d5464816fd82f9d
tree94599d8bd65f284a1c635510abafec51dc3131a3
parent69092b934ce34c2b91569842d21497e995398cab
GFS2: Wait for iopen glock dequeues

This patch changes every glock_dq for iopen glocks into a dq_wait.
This makes sure that iopen glocks do not outlive the inode itself.
In turn, that ensures that anyone trying to unlink the glock will
be able to find the inode when it receives a remote iopen callback.

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