]> git.baikalelectronics.ru Git - kernel.git/commit
gfs2: cancel timed-out glock requests
authorAndreas Gruenbacher <agruenba@redhat.com>
Mon, 24 Jan 2022 17:23:55 +0000 (12:23 -0500)
committerAndreas Gruenbacher <agruenba@redhat.com>
Tue, 15 Feb 2022 14:01:40 +0000 (15:01 +0100)
commitd5ab065d4f5ddcb5526e22c73fa9b6b56ca80ffb
treeae6074be192e013a6490082e521e17687fa40ded
parent0415e0dbe2dd164dfaacd952955f0c111a3ed81b
gfs2: cancel timed-out glock requests

The gfs2 evict code tries to upgrade the iopen glock from SH to EX. If
the attempt to upgrade times out, gfs2 needs to tell dlm to cancel the
lock request or it can deadlock. We also need to wake up the process
waiting for the lock when dlm sends its AST back to gfs2.

Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Signed-off-by: Bob Peterson <rpeterso@redhat.com>
fs/gfs2/glock.c