mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-02-19 15:57:56 -05:00
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 <agruenba@redhat.com>
This commit is contained in:
@@ -1008,8 +1008,7 @@ bool gfs2_queue_try_to_evict(struct gfs2_glock *gl)
|
||||
|
||||
if (test_and_set_bit(GLF_TRY_TO_EVICT, &gl->gl_flags))
|
||||
return false;
|
||||
return queue_delayed_work(sdp->sd_delete_wq,
|
||||
&gl->gl_delete, 0);
|
||||
return !mod_delayed_work(sdp->sd_delete_wq, &gl->gl_delete, 0);
|
||||
}
|
||||
|
||||
bool gfs2_queue_verify_delete(struct gfs2_glock *gl, bool later)
|
||||
|
||||
Reference in New Issue
Block a user