OSDN Git Service

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)
commit660a6126f8c3208f6df8d552039cda078a8426d1
tree5f0564f84181680ad3a87f60fc54a5076b8d116d
parent7427f3bb49d81525b7dd1d0f7c5f6bbc752e6f0e
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