[Cluster-devel] [PATCH gfs2/for-next] gfs2: check context on gfs2_glock_put

Andreas Gruenbacher agruenba at redhat.com
Wed Oct 13 14:16:13 UTC 2021


On Wed, Oct 13, 2021 at 4:02 PM Alexander Aring <aahringo at redhat.com> wrote:
> This patch adds a might_sleep() call into gfs2_glock_put() which could
> sleep if last reference is released. A comment leaves a note for the
> programmer that the only reason why it might can sleep is that the DLM
> api is called which is currently sleepable context. Checking on
> sleepable context in gfs2_glock_put() will show us problems earlier
> instead of seeing issues only if the last put occurred.

Thanks, I've pushed this to for-next.

Andreas




More information about the Cluster-devel mailing list