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)
commit86d067a797d4e8546a7c92b985f31e8cd3ec39ad
tree94599d8bd65f284a1c635510abafec51dc3131a3
parent400ac52e805bb6852e743817bc05a136e85042a9
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