]> 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)
commit8ea937e3f9425d3309a4b40b4f294ae1f27c305b
treeae6074be192e013a6490082e521e17687fa40ded
parentdce86e05d6142277a33cd1fd9299b5cdc9090876
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