Commit 356b8103 authored by Andreas Gruenbacher's avatar Andreas Gruenbacher
Browse files

Revert "gfs2: check context in gfs2_glock_put"



It turns out that the might_sleep() call that commit 660a6126 adds
is triggering occasional data corruption in testing.  We're not sure
about the root cause yet, but since this commit was added as a debugging
aid only, revert it for now.

This reverts commit 660a6126.

Fixes: 660a6126 ("gfs2: check context in gfs2_glock_put")
Cc: stable@vger.kernel.org # v5.16+
Signed-off-by: default avatarAndreas Gruenbacher <agruenba@redhat.com>
parent 74382e27
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -301,9 +301,6 @@ void gfs2_glock_queue_put(struct gfs2_glock *gl)

void gfs2_glock_put(struct gfs2_glock *gl)
{
	/* last put could call sleepable dlm api */
	might_sleep();

	if (lockref_put_or_lock(&gl->gl_lockref))
		return;