Skip to content

Commit 356b810

Browse files
author
Andreas Gruenbacher
committed
Revert "gfs2: check context in gfs2_glock_put"
It turns out that the might_sleep() call that commit 660a612 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 660a612. Fixes: 660a612 ("gfs2: check context in gfs2_glock_put") Cc: [email protected] # v5.16+ Signed-off-by: Andreas Gruenbacher <[email protected]>
1 parent 74382e2 commit 356b810

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

fs/gfs2/glock.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -301,9 +301,6 @@ void gfs2_glock_queue_put(struct gfs2_glock *gl)
301301

302302
void gfs2_glock_put(struct gfs2_glock *gl)
303303
{
304-
/* last put could call sleepable dlm api */
305-
might_sleep();
306-
307304
if (lockref_put_or_lock(&gl->gl_lockref))
308305
return;
309306

0 commit comments

Comments
 (0)