Skip to content

Commit f6ca45e

Browse files
author
Andreas Gruenbacher
committed
gfs2: Use mod_delayed_work in gfs2_queue_try_to_evict
In the unlikely case that we're trying to queue GLF_TRY_TO_EVICT work for an inode that already has GLF_VERIFY_DELETE work queued, we want to make sure that the GLF_TRY_TO_EVICT work gets scheduled immediately instead of waiting for the delayed work timer to expire. Signed-off-by: Andreas Gruenbacher <[email protected]>
1 parent a603333 commit f6ca45e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

fs/gfs2/glock.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1008,8 +1008,7 @@ bool gfs2_queue_try_to_evict(struct gfs2_glock *gl)
10081008

10091009
if (test_and_set_bit(GLF_TRY_TO_EVICT, &gl->gl_flags))
10101010
return false;
1011-
return queue_delayed_work(sdp->sd_delete_wq,
1012-
&gl->gl_delete, 0);
1011+
return !mod_delayed_work(sdp->sd_delete_wq, &gl->gl_delete, 0);
10131012
}
10141013

10151014
bool gfs2_queue_verify_delete(struct gfs2_glock *gl, bool later)

0 commit comments

Comments
 (0)