mirror of
https://github.com/torvalds/linux.git
synced 2026-11-07 06:17:02 +01:00
drbd: stop the start_resync timer of a dying device
start_resync_timer gets armed for up to a second and nothing ever
deletes it, so drbd_destroy_device() can free the device with the timer
pending. Shut it down where request_timer is shut down.
Fixes: 370a43e798 ("drbd: Work on the Ahead -> SyncSource transition")
Cc: Philipp Reisner <philipp.reisner@linbit.com>
Cc: Lars Ellenberg <lars.ellenberg@linbit.com>
Cc: "Christoph Böhmwalder" <christoph.boehmwalder@linbit.com>
Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Link: https://patch.msgid.link/20261028164415.1262013-13-axboe@kernel.dk
Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
parent
26edfdee11
commit
a439d3fe3e
|
|
@ -2163,6 +2163,7 @@ void drbd_destroy_device(struct kref *kref)
|
|||
struct drbd_peer_device *peer_device, *tmp_peer_device;
|
||||
|
||||
timer_shutdown_sync(&device->request_timer);
|
||||
timer_shutdown_sync(&device->start_resync_timer);
|
||||
|
||||
/* paranoia asserts */
|
||||
D_ASSERT(device, device->open_cnt == 0);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user