Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp3855212pxb; Tue, 7 Sep 2021 08:59:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwbqRpK1lTgXt6fGdXBSQ8AxLLQy+uakvG8bQg3wuOAsA9RkNkv8exJYdQV9x7VRDrCX2Ri X-Received: by 2002:aa7:d1d3:: with SMTP id g19mr122529edp.373.1631030371097; Tue, 07 Sep 2021 08:59:31 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1631030371; cv=pass; d=google.com; s=arc-20160816; b=Aj+dvEBmGJ2dd4QEgSapthILIzT8KPB5ymZagJpk8IFVOBoExYYoc0gzNVuaYygSt6 vGiUY5Ra3jWAP2Ns/q/mBGI2PkUXOY5q/+oWHtdiAznBN5oSepZWeHyZhuu92TbN1kbR T/vfeGkD7zYKhmJv5o4a+4lgb+kPN1+TyKpGgIEEnSh1ZSNNbC8RR5IjD/dzexM0E1iE uFsS/rIjQOkFg9pwORhQJOdcWtrtb6BIsTcE1DJUwpNDGQwKGH2srJDR+Pr8dBvTxCix BmSg4/iq5Wk8M73GFA9yYnO3g4pQq5PuFOv4r0AqV2p7JDbQMnUpf3exzrAIsY3nFmVV 48Vw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :wdcipoutbound:content-language:accept-language:message-id:date :thread-index:thread-topic:subject:cc:to:from:dkim-signature :dkim-signature; bh=UeTrvjV6dCfm4FFAYkNOEFEcrGl7TG9y4GYSXqs3ujA=; b=hY4TNSPFFjUUsc2dTGACFn3Zz/5O42JjjWCqopj5GfeDdk+0ujMdvf9zK1jw3L7vyr VBfxGOUV5xJKd0Z5HZEAqdnq5he/rlom1wNwV8BZj8A/VFqxZvCsbXbqdVgwP4BWuaMB 033lc/PsxmNlgU5WbxUkp2eLPdz2Dypn6X6GbWu/IfP8sK3xj0BxtY3SETAuw0oijarU Ihdp/runod1qs9/1rbYEOnt/1Fhb0F6QBUeKn7lVyv8wkAPJMK1tC4Ck2ZtjSVCK/Z7D 0nU9ViDoh4xLqTT2F+VMfEeY3y4iYY0Xfe66X/o3y9HIU9zPQeHu+7xb+4siUHPHF73S kw9w== ARC-Authentication-Results: i=2; mx.google.com; dkim=fail header.i=@wdc.com header.s=dkim.wdc.com header.b=gUlpJ5yG; dkim=pass header.i=@sharedspace.onmicrosoft.com header.s=selector2-sharedspace-onmicrosoft-com header.b=s5NF8x2I; arc=pass (i=1 spf=pass spfdomain=wdc.com dkim=pass dkdomain=wdc.com dmarc=pass fromdomain=wdc.com); 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=fail (p=NONE sp=NONE dis=NONE) header.from=wdc.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r13si12084542edq.502.2021.09.07.08.58.54; Tue, 07 Sep 2021 08:59:31 -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=fail header.i=@wdc.com header.s=dkim.wdc.com header.b=gUlpJ5yG; dkim=pass header.i=@sharedspace.onmicrosoft.com header.s=selector2-sharedspace-onmicrosoft-com header.b=s5NF8x2I; arc=pass (i=1 spf=pass spfdomain=wdc.com dkim=pass dkdomain=wdc.com dmarc=pass fromdomain=wdc.com); 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=fail (p=NONE sp=NONE dis=NONE) header.from=wdc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237891AbhIGOXD (ORCPT + 99 others); Tue, 7 Sep 2021 10:23:03 -0400 Received: from esa3.hgst.iphmx.com ([216.71.153.141]:17679 "EHLO esa3.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233856AbhIGOXC (ORCPT ); Tue, 7 Sep 2021 10:23: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=1631024515; x=1662560515; h=from:to:cc:subject:date:message-id: content-transfer-encoding:mime-version; bh=CCjGXlIFKAvSqwDCiM+j9euV6uJgQIC5PyrIfnajK/Q=; b=gUlpJ5yGjfbtqnaM9GlzI+OLi2SzqWvCDuXdKBzrRPCmmFbAlK1t1XHq RJf2GzTM7hBLzYVga3uARu97K27kih+6VL7iOq4EW+HCiaSWD542y3JZi DECzTk2MmwVvIgremB1d0shSBQ43dMs9tRUC2x8aqChh68Xp6zp7rj4Ud bavhP9C4CMEoE0YgtEV2YuxVBuQX4mN7KZeeMQ8/jOsX34zVj07fIH5cH iyyydGnbXdkHksWmmI8AxW66Jz0BDtsmML/gdJ95L4JCvcDocQOGeMtYT 2W/GZmVdVDHvIG5znJKAySNqpSkfr9S6FRVY2M0wTEbfG0XClmrLt97Nz w==; X-IronPort-AV: E=Sophos;i="5.85,274,1624291200"; d="scan'208";a="184162945" Received: from mail-mw2nam10lp2105.outbound.protection.outlook.com (HELO NAM10-MW2-obe.outbound.protection.outlook.com) ([104.47.55.105]) by ob1.hgst.iphmx.com with ESMTP; 07 Sep 2021 22:21:54 +0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=TvAZrs+zq8vo0VkRGEnWJDlFGalOPJ8PKFSAqL1HLmjJD9NN9kLwtWEuw8fapwg7zzj4YSbRjVXpDr0IC0SnrA3/e0lQXDyRAtcd/5Xg3ztorZS6YdGVGY8ufucmdg9xMBdRjSgaLlUNzpLxk1mEByXM1IotOuWq2vSvk1grArfdFXOf2wO4dYzStcrfCsv/cXUymI7ZfFdHCJuvnCEaPzb4tctvibQ5GhZwF2P4RKB7r2kivSX4X+vieu0izKQXOQ+sP8rMXNV4eWBsCtRSd72aipHPurRE9Q5m2l4bak0HlMNKaeFMtkUly4vKbHNrx16l7DmqkM3JjCS6SsIXRQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=UeTrvjV6dCfm4FFAYkNOEFEcrGl7TG9y4GYSXqs3ujA=; b=KHFzUYVz6EEEgZsloCDGAio6KAGrydwypvX5TADG/fYkLS+EQj+6AjnlOQ/BOGs5Mq3SlmE4ijX2rLIvS+leYZA73xLCpQnT022W+iNo59VwPwCJJ58tuOzxwIwOfJ75BVEvR/1RFScsHeyRgKl8Wx0XHUFmTnxsJljHN6Sdi4PZgvdtaUxI1hKllb8HpDFXkq6jkQAcjtJPOKVx+64RIHWOEtn0825JRZ+7nLl85/bTYAF2xRFjwoRheNiKwbwbZa82lTILaGDrK3mAlAkIxAmCmcW651Pp6VTRi1uRmFD4s2diN5HEvjgUap/yNJaXh2TXmRHVwpe52plBjY7l3g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=wdc.com; dmarc=pass action=none header.from=wdc.com; dkim=pass header.d=wdc.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sharedspace.onmicrosoft.com; s=selector2-sharedspace-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=UeTrvjV6dCfm4FFAYkNOEFEcrGl7TG9y4GYSXqs3ujA=; b=s5NF8x2IW42h7VIa62HHeK8Cbc6xF3aOK5pLGt+pFyT881YNPYoJtnwwwghYsb0fXm0kv1RlIAD2rhdwwMFDcp5XRf/U7NzizGRAusBmYHk+YFjoGbPC3UGhbBmUgNFQxz3zwYcRLkxtvz9nF+q35q8YIAqdkihME0v2Z2hIiI8= Received: from PH0PR04MB7158.namprd04.prod.outlook.com (2603:10b6:510:8::18) by PH0PR04MB7382.namprd04.prod.outlook.com (2603:10b6:510:1e::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4478.21; Tue, 7 Sep 2021 14:21:54 +0000 Received: from PH0PR04MB7158.namprd04.prod.outlook.com ([fe80::3d04:c2fb:e69f:27e8]) by PH0PR04MB7158.namprd04.prod.outlook.com ([fe80::3d04:c2fb:e69f:27e8%6]) with mapi id 15.20.4478.025; Tue, 7 Sep 2021 14:21:54 +0000 From: Niklas Cassel To: Jens Axboe CC: Bart Van Assche , Damien Le Moal , Paolo Valente , Ming Lei , Niklas Cassel , "linux-block@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: [PATCH 0/2] don't call io scheduler callbacks for passthrough requests Thread-Topic: [PATCH 0/2] don't call io scheduler callbacks for passthrough requests Thread-Index: AQHXo/O1SmyNM8u59EWUacCSWXPwmA== Date: Tue, 7 Sep 2021 14:21:54 +0000 Message-ID: <20210907142145.112096-1-Niklas.Cassel@wdc.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-mailer: git-send-email 2.31.1 authentication-results: kernel.dk; dkim=none (message not signed) header.d=none;kernel.dk; dmarc=none action=none header.from=wdc.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 188ea190-c8d1-42f7-bab9-08d9720ad7c0 x-ms-traffictypediagnostic: PH0PR04MB7382: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: wdcipoutbound: EOP-TRUE x-ms-oob-tlc-oobclassifiers: OLM:9508; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: DkPD0enj3ZRzTFnYcXCl+af+gxBc1U4bKx8cvt+ME8Ak1+wVZ8Bq43jde1/Nu0IlN2cjHH+7PzqbhlPFGYnDg8HzHeYSPRX812Sq5w3o81qo3SJgzEjBs/0WiWFlXHpzoWcFAsrlZVPnJRG3ApgP1T3CoUHIkk9s3CrW4vkXVKrRvqXG4sOsL7R9GCTBaeMvpvYtfAs2dKUh+UVb9Am4LnEeIGpcGwhyV4DINdIZRDJyqmbkWkENSdxkwsuui/HPKVWMLeUAberd0RdEjRfaGHOfuBycSiGIhUqs1+HP9A/8aPF9a1LzysWKza+g5qgjV4KrfTW4Na1JFnElk8cPuohM6dNxLzAHEgJTCPmQsldpTzHK+y0j4H9axqQlRFou9RvrxkoZyPEwD5FwaiJAd1y0U69G5qPXEU0aoDU6P0oGlfusjuNxHwrfxvdQOku8acputj9aBJHLuNk6AJZdhvsTRv17/CLw1Z1h6qqTQfqXqR6mPyUR0Oju+w7Mtckdu+tU6UOaMJGF74PNEu8BVVn+HedCzc0PrB6kbvXoFNQ2SEO2VFUMoxPnZx8oBNt0DpYKYzOEKDpXQUOAUjzTtwJPSVbc3fvf5rRJaTBNyYzfQ99oBu3LDPpvBMVuRrpzYf1c9rnwT8qeRIH8kxO7cyNiD5fmr1EBR6ziPbICVmLPVYtdoe2QJH3/saj2J4xXb1nhjFFXswC2DfCXANJP3lcKma/rnweLaV6O2Mn975A5GWAhp9WzykBH5KLe1rkYn3bDQuMcVtBrM3t4/Yqpl4xd0qiY//ELHA/eJAclTAE= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PH0PR04MB7158.namprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(376002)(396003)(39860400002)(366004)(136003)(346002)(6916009)(2906002)(478600001)(5660300002)(8936002)(2616005)(36756003)(186003)(1076003)(64756008)(66476007)(26005)(38070700005)(38100700002)(71200400001)(6512007)(122000001)(66446008)(86362001)(66556008)(76116006)(83380400001)(4326008)(6486002)(8676002)(6506007)(966005)(91956017)(316002)(54906003)(66946007);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?Q?yM8FrrizDfsNEFfoAT6jq8xeKgczV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?iso-8859-1?Q?CpscLoxUml1MnT4XaYJTiDdizDNhERVOaNMXCsT58cgnk6e+A447RPHWHP?= =?iso-8859-1?Q?oKks6Vvjj2cr6coILB411JJqZF7KMUK/+uFTfLFBqNcXC3bTk4CaBu1ikN?= =?iso-8859-1?Q?I/c/Tl5HdJhNL31PGkCVd0Z/r9DTkfe78BLgmcjsiYTJN2d97MyQ4nFgrG?= =?iso-8859-1?Q?sEVAsLEQhteZKZb11WcCZEKjvx4n3qk0KhZz9+BsE32CdU0/b7usum8AyY?= =?iso-8859-1?Q?pdlKLI5riDI1et2ceYmaoYVRQFp2NqjuJeQwcNTh1YSEFweGcwkkrkpwAA?= =?iso-8859-1?Q?f8zHDlbfSydj2G4oOz4bJAKYuN7OcQi28fx5cPIXWguvdy2YAwYKt01gDy?= =?iso-8859-1?Q?UIcnWad+dPa5/xzjLUm0LQX9GP1Inyelzxq/ezkp5QZMIAJi3LgSmphcMe?= =?iso-8859-1?Q?8ADmjQU98gZZLTuUMOeXTOsSlOOhkKzjeMsdrnuk1f5cITC/4wfQ6QIoVA?= =?iso-8859-1?Q?q3JKD893nNPDH9jf5OqD21UXcn7RxUNA=3D=3D?= Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: wdc.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: PH0PR04MB7158.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 188ea190-c8d1-42f7-bab9-08d9720ad7c0 X-MS-Exchange-CrossTenant-originalarrivaltime: 07 Sep 2021 14:21:54.2775 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: b61c8803-16f3-4c35-9b17-6f65f441df86 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: OYn9hipk9xnDQ40AF0EZonEn2+PpN65FRxBwRIAZFucuh4lkDdP9Eqq6lghj3hqwQTEdtREaSTv2my9RQnZ8Vw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR04MB7382 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Niklas Cassel Recently, there were some extra "dummy" data added into mq-deadline rq->elv.priv, that was added for the solve purpose of working around quirky behavior in blk-mq (which called the scheduler callbacks even for requests that bypassed the scheduler). Fix blk-mq to not call the I/O scheduler callbacks for passthrough requests= , since they will later bypass the I/O scheduler anyway. This way, we can remove unnecessary logic in mq-deadline that was added to deal with this quirky behavior. BFQ should be able to perform a similar cleanup, if they wish, and should then be able to drop this comment from the code: https://github.com/torvalds/linux/blob/v5.14/block/bfq-iosched.c#L6456-L646= 2 Considering that I'm quite unfamiliar with the BFQ code, I'd rather someone who is a bit more familiar with BFQ performs that cleanup. Kind regards, Niklas Niklas Cassel (2): blk-mq: don't call callbacks for requests that bypassed the scheduler Revert "mq-deadline: Fix request accounting" block/blk-mq.c | 7 ++++++- block/mq-deadline.c | 16 +++++----------- 2 files changed, 11 insertions(+), 12 deletions(-) --=20 2.31.1