Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3419531pxf; Mon, 29 Mar 2021 01:30:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx/ORHvuvNNLTo2YIxHBUuy0qImZxIZYkW528uMPz3UKaCg1fz/ia/tp7Vktwz1GE53w88G X-Received: by 2002:a17:906:5e4a:: with SMTP id b10mr27487103eju.116.1617006645589; Mon, 29 Mar 2021 01:30:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617006645; cv=none; d=google.com; s=arc-20160816; b=cewbHmegbCd/+rVfo7qpJrzkPr0QLqhWY8JWErD3tXHHAIEcuMzO0fegvdZ9EMXWWf J4xi1VWKi2sEQvzYPF66wtp5pP/rNW3N00f8kDh67FZSRiG5/ltfDyHEiH1iQatzsH7G GoqaVwUHfUeBgz7GHk4fnJ7XPvHo4sDcY0vSMbil8PCR9LfXrn1zQ8H6xsE8nrjTg4xt BNHnGfE+KxIa0LK+VpfcHe6j416TWeKbMZcGDwMq9Wsuo4ZooHMsH76P04ZRGJUP38Kq csLBAIIM/WiC+JQSFKM0mWLxDnOPcu23jxgh8BzHpeuWIedc4ItpK5Bn0KjFThKyxG9b BVDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=I4JhPNytDdevu7MtqNqgkLhRce9zRg2x1BOSfyHKE2I=; b=FUABidI1KCSOgCnu2YURMS2izgmAytNOqJy56ngQ7xer8zM7RM2DSgvqbcaGwQzkMn gsjKh4TEK+y2IOMA6k1DAUOkafeHE0rr51Kg9o9IgszbDucGPT2iunBNz3xgkd4JcHtl yGLdIqJ1yA5QN3B0YGRn8akhciw82QBh85c6OHJaun2X0/EWKp16AtDRS9Gki+UBUHdu Q1j3C7TohNVDPkMYksk/BL7wuqL82NXu3tRA2a9Q/BNk1WOB2aokcKZAFkP1MV6LkTQw gd+JQVXB1UKg3CCVRxtCpT3ijoLbzRS6vaFBWxz4QTxHUIoh+gLdWfkteooG3/PFPStS XqOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=1RYYYXf4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u13si12485194ejc.243.2021.03.29.01.30.22; Mon, 29 Mar 2021 01:30:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=1RYYYXf4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234531AbhC2I2k (ORCPT + 99 others); Mon, 29 Mar 2021 04:28:40 -0400 Received: from mail.kernel.org ([198.145.29.99]:34208 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231769AbhC2ISK (ORCPT ); Mon, 29 Mar 2021 04:18:10 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id DC5D861613; Mon, 29 Mar 2021 08:18:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1617005886; bh=XifRrMrxCJg43rByW+sMjpAN3EOVGEybq7XVqXaYOW4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=1RYYYXf45AK7QpmY/o6rs8mGaA/aBZc7G83cnnNP14LQiex4fTXtEL+qN6kYgV0g1 ELeh8Wf16/etBbiosv87ypE/9d8fDumVKFfL6neuWBi5gqsMobxH3MOu3CasmYBscz 5e9topCt4OJawnroUwXY7cu4JtWolq2BOYDpPJug= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Damien Le Moal , Jens Axboe , Sasha Levin Subject: [PATCH 5.10 041/221] block: Fix REQ_OP_ZONE_RESET_ALL handling Date: Mon, 29 Mar 2021 09:56:12 +0200 Message-Id: <20210329075630.554463458@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210329075629.172032742@linuxfoundation.org> References: <20210329075629.172032742@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Damien Le Moal [ Upstream commit faa44c69daf9ccbd5b8a1aee13e0e0d037c0be17 ] Similarly to a single zone reset operation (REQ_OP_ZONE_RESET), execute REQ_OP_ZONE_RESET_ALL operations with REQ_SYNC set. Signed-off-by: Damien Le Moal Signed-off-by: Jens Axboe Signed-off-by: Sasha Levin --- block/blk-zoned.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/block/blk-zoned.c b/block/blk-zoned.c index 4676c6f00489..ab7d7ebcf6dd 100644 --- a/block/blk-zoned.c +++ b/block/blk-zoned.c @@ -240,7 +240,7 @@ int blkdev_zone_mgmt(struct block_device *bdev, enum req_opf op, */ if (op == REQ_OP_ZONE_RESET && blkdev_allow_reset_all_zones(bdev, sector, nr_sectors)) { - bio->bi_opf = REQ_OP_ZONE_RESET_ALL; + bio->bi_opf = REQ_OP_ZONE_RESET_ALL | REQ_SYNC; break; } -- 2.30.1