drbd: Convert timers to use timer_setup()
In preparation for unconditionally passing the struct timer_list pointer to all timer callbacks, switch to using the new timer_setup() and from_timer() to pass the timer pointer explicitly. Cc: Philipp Reisner <philipp.reisner@linbit.com> Cc: Lars Ellenberg <lars.ellenberg@linbit.com> Cc: drbd-dev@lists.linbit.com Signed-off-by: Kees Cook <keescook@chromium.org>
This commit is contained in:
@@ -5056,7 +5056,7 @@ static int drbd_disconnected(struct drbd_peer_device *peer_device)
|
||||
wake_up(&device->misc_wait);
|
||||
|
||||
del_timer_sync(&device->resync_timer);
|
||||
resync_timer_fn((unsigned long)device);
|
||||
resync_timer_fn(&device->resync_timer);
|
||||
|
||||
/* wait for all w_e_end_data_req, w_e_end_rsdata_req, w_send_barrier,
|
||||
* w_make_resync_request etc. which may still be on the worker queue
|
||||
|
Reference in New Issue
Block a user