]> git.baikalelectronics.ru Git - kernel.git/commit
gfs2: check context in gfs2_glock_put
authorAlexander Aring <aahringo@redhat.com>
Wed, 13 Oct 2021 14:02:00 +0000 (10:02 -0400)
committerAndreas Gruenbacher <agruenba@redhat.com>
Mon, 25 Oct 2021 06:42:20 +0000 (08:42 +0200)
commit49a9852a265cac7185d9aeedfea8bf3e48509a90
tree5f0564f84181680ad3a87f60fc54a5076b8d116d
parentb530943c2f4f2f41f5c62e166a76f6692052d028
gfs2: check context in gfs2_glock_put

Add a might_sleep call into gfs2_glock_put which can sleep in DLM when
the last reference is released.  This will show problems earlier, and
not only when the last reference is put.

Signed-off-by: Alexander Aring <aahringo@redhat.com>
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
fs/gfs2/glock.c