From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E7EFE2459DC; Tue, 17 Mar 2026 17:24:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773768280; cv=none; b=p4LVsTNcG4y2ZvXVMGBvQ1sn9einsp5C1yWPmR1VqSLiouWbH8z3p0TljWwS8kQcil13JkFripT2owG83BIvj0D/na4YPXUYXQ/uqLvtAqbtGAznZG6ad8HmfaGXdGeBSkZ/5/arOGg+1T8Pggz8QP88AmLEV5HWn2sNHb4/sGo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773768280; c=relaxed/simple; bh=0qZcJBz85Hf8vGjB5t/XNUFgCofit+r1dLROQmt1EAY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Mof2AYzv9wdev0CakrWhltheKXBJXNb7ghDHQzUt6mlwXysFL0e2m0ukWcGlPx0gYm+hXCuVaHJdGRzttoYWMs729FZXtwyKCASaSnZkmxvkvM1VNzCVwheFfzHh7BxVqWsms7RgFQZ+w3SjfyntdYBFENwwg7+agR65E3RBUiU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=md/aLUqo; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="md/aLUqo" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 51EC6C4CEF7; Tue, 17 Mar 2026 17:24:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1773768279; bh=0qZcJBz85Hf8vGjB5t/XNUFgCofit+r1dLROQmt1EAY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=md/aLUqoxQ4Zd3pNVD4Vb48dR4OycJtxUSshWvjIOjsCT/pdJqTzcxY8PF/2fWAns LHEGAl4q8jtAsjtIhVeKAQILTfpvEHbN+jogBBcXRPWenns4PfKgnsnQfFTdqqaxXq 0I6VV8CfbUAh+zaoKX81FAG7+I6xQlLi0TfHvNzI= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Jan Hoeppner , Stefan Haberland , Jens Axboe Subject: [PATCH 6.18 273/333] s390/dasd: Move quiesce state with pprc swap Date: Tue, 17 Mar 2026 17:35:02 +0100 Message-ID: <20260317163009.519221596@linuxfoundation.org> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260317162959.345812316@linuxfoundation.org> References: <20260317162959.345812316@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.18-stable review patch. If anyone has any objections, please let me know. ------------------ From: Stefan Haberland commit 40e9cd4ae8ec43b107ed2bff422a8fa39dcf4e4b upstream. Quiesce and resume is a mechanism to suspend operations on DASD devices. In the context of a controlled copy pair swap operation, the quiesce operation is usually issued before the actual swap and a resume afterwards. During the swap operation, the underlying device is exchanged. Therefore, the quiesce flag must be moved to the secondary device to ensure a consistent quiesce state after the swap. The secondary device itself cannot be suspended separately because there is no separate block device representation for it. Fixes: 413862caad6f ("s390/dasd: add copy pair swap capability") Cc: stable@vger.kernel.org #6.1 Reviewed-by: Jan Hoeppner Signed-off-by: Stefan Haberland Link: https://patch.msgid.link/20260310142330.4080106-2-sth@linux.ibm.com Signed-off-by: Jens Axboe Signed-off-by: Greg Kroah-Hartman --- drivers/s390/block/dasd_eckd.c | 5 +++++ 1 file changed, 5 insertions(+) --- a/drivers/s390/block/dasd_eckd.c +++ b/drivers/s390/block/dasd_eckd.c @@ -6193,6 +6193,11 @@ static int dasd_eckd_copy_pair_swap(stru dev_name(&secondary->cdev->dev), rc); } + if (primary->stopped & DASD_STOPPED_QUIESCE) { + dasd_device_set_stop_bits(secondary, DASD_STOPPED_QUIESCE); + dasd_device_remove_stop_bits(primary, DASD_STOPPED_QUIESCE); + } + /* re-enable device */ dasd_device_remove_stop_bits(primary, DASD_STOPPED_PPRC); dasd_device_remove_stop_bits(secondary, DASD_STOPPED_PPRC);