Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp11172295ybi; Thu, 25 Jul 2019 11:13:34 -0700 (PDT) X-Google-Smtp-Source: APXvYqyEDEXvQ8w3o9gsP0npSMKl1sIF+arDWiI6eIuxjU/6IVewDML44gjF6SUelP/wC9ZxS986 X-Received: by 2002:a17:90a:2023:: with SMTP id n32mr90151225pjc.3.1564078414496; Thu, 25 Jul 2019 11:13:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564078414; cv=none; d=google.com; s=arc-20160816; b=Jvdd0yMGp5MVOxaZghOy009zGsOOqYEka4QMwjIpd53qx0AFOaIccplrYt/BWn6QaI S7y7aLxiUl4DDrOrEA0O0ccovTbhSzbFJi0Y6w/YozG6DvzM3Lls6CiiD0KW5kehJDe+ HZHL/qKMhzM2MSbwD5qya/bvgp4AZPFey/V9RJG6+t8MhPaxgQiWyYFqRC4fNBu3UM8Y DtO+yHmEH+l2mubsxqVtFRsfmLSK7HIMIwCt2WCx166eTCJ/TwAsGWMbmoIUK2r4Qihl 6jAqffCrfcvtAC1hvV0JaTbs3A0RtWoId2hHF13piuMMv7/EONSGUwQvNRrnLy41BPEe d7iw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:subject:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:cc:to:from; bh=vdlSDQu2v0huZ0sWFqiK43w0XdOI4oIEyIwYeC6FsV4=; b=ID5RBryDF77qlm/fMF7eCKibupKX+m4KzNW4K+jgBqbv3DrBvFxhPt7ES2JCey7mcz s33RY/yFqv7gCDkV9Eubo3DlZiSfBeeA+KUmoMKsOzjE6hpvN5pXXwfs1xR8/btL+YNZ 7N7bEHhbLyycOq/XT7j3g1T0yw8XSA2UBHLxApcZnWxawNk+dYey86CijpHLtIUd9Fwa KagUmEz9KbRLOgP3bKweKEsdSkTxH6/5JEbv0cg2q0rr2yIU3ZZIVG8OCxIfv0vLVD+r W21sg0GR6fI4PXZLURaaJiCCCQix0iVm5/w3yykljzNwrxpsgRrv2nt31hHgMx72OJ9X /XgA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h65si18896561pfb.18.2019.07.25.11.13.20; Thu, 25 Jul 2019 11:13:34 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391316AbfGYRYl (ORCPT + 99 others); Thu, 25 Jul 2019 13:24:41 -0400 Received: from ale.deltatee.com ([207.54.116.67]:39674 "EHLO ale.deltatee.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390879AbfGYRXu (ORCPT ); Thu, 25 Jul 2019 13:23:50 -0400 Received: from cgy1-donard.priv.deltatee.com ([172.16.1.31]) by ale.deltatee.com with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hqhSw-0001Ji-It; Thu, 25 Jul 2019 11:23:49 -0600 Received: from gunthorp by cgy1-donard.priv.deltatee.com with local (Exim 4.89) (envelope-from ) id 1hqhSw-0001nl-Df; Thu, 25 Jul 2019 11:23:42 -0600 From: Logan Gunthorpe To: linux-kernel@vger.kernel.org, linux-nvme@lists.infradead.org, linux-block@vger.kernel.org, linux-fsdevel@vger.kernel.org Cc: Christoph Hellwig , Sagi Grimberg , Keith Busch , Jens Axboe , Chaitanya Kulkarni , Max Gurtovoy , Stephen Bates , Logan Gunthorpe Date: Thu, 25 Jul 2019 11:23:34 -0600 Message-Id: <20190725172335.6825-16-logang@deltatee.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190725172335.6825-1-logang@deltatee.com> References: <20190725172335.6825-1-logang@deltatee.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SA-Exim-Connect-IP: 172.16.1.31 X-SA-Exim-Rcpt-To: linux-nvme@lists.infradead.org, linux-kernel@vger.kernel.org, linux-block@vger.kernel.org, linux-fsdevel@vger.kernel.org, hch@lst.de, sagi@grimberg.me, kbusch@kernel.org, axboe@fb.com, Chaitanya.Kulkarni@wdc.com, maxg@mellanox.com, sbates@raithlin.com, logang@deltatee.com X-SA-Exim-Mail-From: gunthorp@deltatee.com X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on ale.deltatee.com X-Spam-Level: X-Spam-Status: No, score=-8.7 required=5.0 tests=ALL_TRUSTED,BAYES_00, GREYLIST_ISWHITE,MYRULES_NO_TEXT autolearn=ham autolearn_force=no version=3.4.2 Subject: [PATCH v6 15/16] block: call blk_account_io_start() in blk_execute_rq_nowait() X-SA-Exim-Version: 4.2.1 (built Tue, 02 Aug 2016 21:08:31 +0000) X-SA-Exim-Scanned: Yes (on ale.deltatee.com) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org All existing users of blk_execute_rq[_nowait]() are for passthrough commands and will thus be rejected by blk_do_io_stat(). This allows passthrough requests to opt-in to IO accounting by setting RQF_IO_STAT. Signed-off-by: Logan Gunthorpe --- block/blk-exec.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/block/blk-exec.c b/block/blk-exec.c index 1db44ca0f4a6..e20a852ae432 100644 --- a/block/blk-exec.c +++ b/block/blk-exec.c @@ -55,6 +55,8 @@ void blk_execute_rq_nowait(struct request_queue *q, struct gendisk *bd_disk, rq->rq_disk = bd_disk; rq->end_io = done; + blk_account_io_start(rq, true); + /* * don't check dying flag for MQ because the request won't * be reused after dying flag is set -- 2.20.1