From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796388128; b=bdxSqb9MW+ZvOpUbr+nlAp8UaNdk+Wb3wljNychxHQiFGFwzw2UlVGo3M+C1JAfuDisW 0DqUldXEBFW6S2MgSZX4Ko15bw2a3wgqfVhSDXu+YFFxBdTWR798yRBpy5ZPn4GqPm6q9 IyWrMZeOVXL2hIf19aw+wY+x3CzUw8pLMz2D2BrMITOeCV4/LTtHiv9SJeF7MjquFi0H1 INKhpxezdUdRl7+9FCM2KDkZF8MeBtsTVTdcJ6DDbkxCtvv7cyIQPMAcs0mtBgSob89Rq Wq8VhzAgIeW0clLnhYKUSTeI4TBGo8fa1bjsi0PCP3cyjWPPUFGxBBpnC08h8uXfDKQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796388128; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: In-Reply-To:References:User-Agent:X-stable:X-Patchwork-Hint: MIME-Version:Content-Type:Content-Transfer-Encoding; bh=vxhOOVl3Oxif7A62TPOOWwJZVZ2gHM+MHsKC3qrfntw=; b=x4Kmp2Dx3RKwnXoTj07ptIiLZzvUZrZsLerjoqieiLgF6WaoRHVuHgEdOff8jBrS41wq tkIm/m0rrwyURyca1OKKBNbTbrq7k3zw2pvOAKqtgyePYocutS6il1U/gxJ1SigavpDCs 02XjhbXMIwz7FvrLP0EMM0qy0M1KQvLmI5rsGC+cPdLyEjwHqU6Q8DR34SHD5HH5fqxYD 5QAxQuitTi/EMQ530YisodLoE8D+n6gfRBPOwtzqB78bdg0KJAwfW9NZ/ZXJYNkJBYj6y Ns6yKPOmDS/LgYdxecdg7Tgad1q4zu6O5TkKR1zDiHYj2uQdtJWs1OGinymzeCfITXA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b="cckXmQ/0"; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2E21C606A322; Fri, 4 Dec 2026 12:42:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=cckXmQ/0 Received: by smtp.kernel.org (Postfix) with ESMTPSA id A06F81F000C2; Fri, 4 Dec 2026 12:42:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796388128; bh=vxhOOVl3Oxif7A62TPOOWwJZVZ2gHM+MHsKC3qrfntw=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=cckXmQ/0uVRxXxMq76P7rn+0AtuuW1JbO5leuUOHLna9Y1H6xOHQavC90Ov14Hvry dI597E+7Ws+sERL8LQs1QQDSipfc9KQfD/DLgtJtLGRjMcuYgRb+5oAwVSIIMU+ccz 29IQ4isp4iy1Vkq8c2J71Gtu79la+dpr9P4CiUFA= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Philipp Reisner , Lars Ellenberg , =?UTF-8?q?Christoph=20B=C3=B6hmwalder?= , Josef Bacik , Jens Axboe , Sasha Levin Subject: [PATCH 6.1 0453/1059] drbd: stop the start_resync timer of a dying device Date: Fri, 4 Dec 2026 18:59:44 +0900 Message-ID: <20261204100656.022375556@linuxfoundation.org> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261204100643.980430235@linuxfoundation.org> References: <20261204100643.980430235@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore X-Mailing-List: stable@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 6.1-stable review patch. If anyone has any objections, please let me know. ------------------ From: Josef Bacik [ Upstream commit a439d3fe3ec2bfe0b4ccb77973ae97949bcf46ec ] 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: 370a43e7982d ("drbd: Work on the Ahead -> SyncSource transition") Cc: Philipp Reisner Cc: Lars Ellenberg Cc: "Christoph Böhmwalder" Signed-off-by: Josef Bacik Link: https://patch.msgid.link/20261028164415.1262013-13-axboe@kernel.dk Signed-off-by: Jens Axboe [ sashal: kept the branch's existing del_timer_sync() context line for request_timer and added the start_resync_timer shutdown line after it unchanged. ] Signed-off-by: Sasha Levin --- drivers/block/drbd/drbd_main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/block/drbd/drbd_main.c b/drivers/block/drbd/drbd_main.c index b84d079d80b24..76af49ae899f9 100644 --- a/drivers/block/drbd/drbd_main.c +++ b/drivers/block/drbd/drbd_main.c @@ -2185,6 +2185,7 @@ void drbd_destroy_device(struct kref *kref) struct drbd_peer_device *peer_device, *tmp_peer_device; del_timer_sync(&device->request_timer); + timer_shutdown_sync(&device->start_resync_timer); /* paranoia asserts */ D_ASSERT(device, device->open_cnt == 0); -- 2.53.0