Commit 838486eb authored by Eric Sandeen's avatar Eric Sandeen Committed by Nathan Scott

[XFS] Use mod_timer in place of del/modify/add (can race)

Also use del_timer_sync when we're done.

SGI Modid: 2.5.x-xfs:slinx:142197a
parent 26a8cfd8
......@@ -1612,15 +1612,13 @@ pagebuf_daemon(
refrigerator(PF_IOTHREAD);
if (pbd_active == 1) {
del_timer(&pb_daemon_timer);
pb_daemon_timer.expires = jiffies +
pb_params.p_un.flush_interval;
add_timer(&pb_daemon_timer);
mod_timer(&pb_daemon_timer,
jiffies + pb_params.p_un.flush_interval);
interruptible_sleep_on(&pbd_waitq);
}
if (pbd_active == 0) {
del_timer(&pb_daemon_timer);
del_timer_sync(&pb_daemon_timer);
}
spin_lock(&pbd_delwrite_lock);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment