From patchwork Wed Jul 10 04:02:22 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chaitanya Kulkarni X-Patchwork-Id: 11037775 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id B6002138D for ; Wed, 10 Jul 2019 04:03:03 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A8781288E6 for ; Wed, 10 Jul 2019 04:03:03 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9CD0A288EC; Wed, 10 Jul 2019 04:03:03 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.7 required=2.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4D897288E6 for ; Wed, 10 Jul 2019 04:03:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726098AbfGJEDC (ORCPT ); Wed, 10 Jul 2019 00:03:02 -0400 Received: from esa3.hgst.iphmx.com ([216.71.153.141]:47825 "EHLO esa3.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725791AbfGJEDC (ORCPT ); Wed, 10 Jul 2019 00:03:02 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=wdc.com; i=@wdc.com; q=dns/txt; s=dkim.wdc.com; t=1562731383; x=1594267383; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=nL2Cp9xIWa4DFndjGytItZxL7ccXH8n5IsZyR6KogdM=; b=QV/bLBNArh55T8YxDQCOIlI8pLGgkHKpG/bV/Pu3LZVrp9llrK3j7s9s wNpcDGx6HoE4cgI+7r+OtEzkwF/j3mp1TMgNk5BHYTVDivnxySMXkXpwJ N0piBaspsieCPwgbnw/uqScEfnqUjGgFpqQUH/FvsaTVmdRFSMZewpyOi A5HRwKWzzdN7PF4koeo4gGDjNT9PZ5LbaP8CJrV0TMkukqWG5l33wh+gL Yvr3F4Y62OIRc7SOKaugtsEQoAkQs4YnDkRMf2uwRddsYuAuBDWYKE3dX /Gacu6NUUIB/jXdX+BihVQgiC82Hoeoh8jAPBQq9+2e22JZFBLyRHMsZN w==; IronPort-SDR: Xuc+EqHe7ENMN2qy6/J7lbomAbmEMa3mfLwOpGzhi7qGX+mBv4Wj8XzqlUvQ8FUEMzvXWzAJan /0kkOqBRdDS9RHFpr9IFw6wvUNtP3RzYHqNdYw+NjWazVLz45sigAUVtO/+BYPrXl4IktG1YHx xkEXCo94uQ4Jy3o59ItTfk0fCDvf/Xr2DWfhWZzl13NpNjuil5VpED9dJilMx2nZyoQ5lQ6OnW 69SoruqqTO+cecvDoTuXf1cc3EOomPPUpTvPePcAnMaL7O7ZpZp1TE1kRwb8oynBjIAFbn0O2m Eg8= X-IronPort-AV: E=Sophos;i="5.63,473,1557158400"; d="scan'208";a="117438991" Received: from uls-op-cesaip02.wdc.com (HELO uls-op-cesaep02.wdc.com) ([199.255.45.15]) by ob1.hgst.iphmx.com with ESMTP; 10 Jul 2019 12:03:03 +0800 IronPort-SDR: 0Cj+9JBwxbrOaL7tNujq7JmlHVw67dhEzSG3pLdw/sCMukBJPHTAjqaL+yJcscWOZdtydwiwmj kWHTA0Ar+MTInH0rWti/olOCVFw5H6wST1FfPOh+o69SRoO1lp+wVuR61uNzoXSKFlXChTCYku 3x5nmBWSIqFf0WSJF1YW9Niu39iZ5NO3q7MqdvJBxbEBfzbylOEzAwPCJE1kJJBh6dKj7UyPzd 2rK6qJ/5tgkBEPEJeCS70SIoDICalLC9rXfAx+FY8h0mPAklBY8FbJTuNcXS8d4tESxki0BVGK tmaw3K/0k8cJwzvvoX5jxl0u Received: from uls-op-cesaip02.wdc.com ([10.248.3.37]) by uls-op-cesaep02.wdc.com with ESMTP; 09 Jul 2019 21:01:48 -0700 IronPort-SDR: /X8Vt+Zq18Bwb2coxNIrxojPf8Yo13KFVlKeJ7Yl0ujah481Pl5HgfY8AfKhI34FQwSnHGQMKq UFu+bqlYqf8IAcI588VxqgOx+6as4TEizZ5FBBOzyCI8MA4J+XOZxGl2+98QJYUkyR7HcDSfUZ ihK7T8zuuX3MJioSPsmJObknPRQekH6dpENmAQxMSY2QqoVx1adDx2U8Nb6kMIkONBc68BQxXh Oet6XllqptIzuFez5WVlboHC0676TvOt5dL4mhG6fkZZrwHsDu9oID/kk2HvWP3k6khoTaezo6 YE8= Received: from cvenusqemu.hgst.com ([10.202.66.73]) by uls-op-cesaip02.wdc.com with ESMTP; 09 Jul 2019 21:03:02 -0700 From: Chaitanya Kulkarni To: linux-block@vger.kernel.org Cc: Chaitanya Kulkarni , axboe@kernel.dk, hch@lst.de Subject: [PATCH 1/3] block: set ioprio for zone-reset bio Date: Tue, 9 Jul 2019 21:02:22 -0700 Message-Id: <20190710040224.12342-2-chaitanya.kulkarni@wdc.com> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20190710040224.12342-1-chaitanya.kulkarni@wdc.com> References: <20190710040224.12342-1-chaitanya.kulkarni@wdc.com> Sender: linux-block-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Set the current process's iopriority to the bio for REQ_OP_ZONE_RESET. Signed-off-by: Chaitanya Kulkarni Reviewed-by: Martin K. Petersen --- block/blk-zoned.c | 1 + 1 file changed, 1 insertion(+) diff --git a/block/blk-zoned.c b/block/blk-zoned.c index ae7e91bd0618..0bd7981e9535 100644 --- a/block/blk-zoned.c +++ b/block/blk-zoned.c @@ -249,6 +249,7 @@ int blkdev_reset_zones(struct block_device *bdev, bio->bi_iter.bi_sector = sector; bio_set_dev(bio, bdev); bio_set_op_attrs(bio, REQ_OP_ZONE_RESET, 0); + bio_set_prio(bio, get_current_ioprio()); sector += zone_sectors;