From patchwork Thu Dec 21 11:12:21 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kundan Kumar X-Patchwork-Id: 13501853 Received: from mailout3.samsung.com (mailout3.samsung.com [203.254.224.33]) (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 9D51A697A5 for ; Thu, 21 Dec 2023 13:01:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=samsung.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=samsung.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b="RknqFI9n" Received: from epcas5p3.samsung.com (unknown [182.195.41.41]) by mailout3.samsung.com (KnoxPortal) with ESMTP id 20231221130139epoutp03d821cc9ae8176de3a65ab2710c5bc369~i2lxwOA6p1365513655epoutp03D for ; Thu, 21 Dec 2023 13:01:39 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout3.samsung.com 20231221130139epoutp03d821cc9ae8176de3a65ab2710c5bc369~i2lxwOA6p1365513655epoutp03D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1703163699; bh=PpnlORNR0D4uCtNQd1bbOOWyPJnGQzA/ditmPACE5wE=; h=From:To:Cc:Subject:Date:References:From; b=RknqFI9nLJtGJYI/LAIF4eChc3UaM5gUtooyXspWdZEhurw17T7m0lSrb5wjmVDlQ mA/1kmtYxGJICkQjW9j+BXx6tmeAj7P06jwzCIpS6SjxtEQ0DfDHpRU27UpVKVCFlV CuXBxILm408KeyvImUYBHVMW4ePWHQZwCqMJTCEg= Received: from epsnrtp3.localdomain (unknown [182.195.42.164]) by epcas5p2.samsung.com (KnoxPortal) with ESMTP id 20231221130139epcas5p2aa94ddd4d53646cb0efabbe23508ba3b~i2lxavJqs0750607506epcas5p2R; Thu, 21 Dec 2023 13:01:39 +0000 (GMT) Received: from epsmges5p1new.samsung.com (unknown [182.195.38.182]) by epsnrtp3.localdomain (Postfix) with ESMTP id 4SwrD12q8Xz4x9Pt; Thu, 21 Dec 2023 13:01:37 +0000 (GMT) Received: from epcas5p4.samsung.com ( [182.195.41.42]) by epsmges5p1new.samsung.com (Symantec Messaging Gateway) with SMTP id BA.66.09634.03734856; Thu, 21 Dec 2023 22:01:36 +0900 (KST) Received: from epsmtrp1.samsung.com (unknown [182.195.40.13]) by epcas5p4.samsung.com (KnoxPortal) with ESMTPA id 20231221111858epcas5p46c3bf66f33df8652d2da966b3ecbfa60~i1MHWoPL60261302613epcas5p4O; Thu, 21 Dec 2023 11:18:58 +0000 (GMT) Received: from epsmgms1p1new.samsung.com (unknown [182.195.42.41]) by epsmtrp1.samsung.com (KnoxPortal) with ESMTP id 20231221111858epsmtrp1a518a6716d63997965b748925070783a~i1MHWC9sq1883118831epsmtrp1b; Thu, 21 Dec 2023 11:18:58 +0000 (GMT) X-AuditID: b6c32a49-159fd700000025a2-b6-65843730eaf6 Received: from epsmtip1.samsung.com ( [182.195.34.30]) by epsmgms1p1new.samsung.com (Symantec Messaging Gateway) with SMTP id 51.2C.08755.12F14856; Thu, 21 Dec 2023 20:18:57 +0900 (KST) Received: from localhost.localdomain (unknown [107.99.41.245]) by epsmtip1.samsung.com (KnoxPortal) with ESMTPA id 20231221111857epsmtip18f664a9fc348222ede1be4a3af7576a9~i1MGW1xzm3105531055epsmtip1_; Thu, 21 Dec 2023 11:18:56 +0000 (GMT) From: Kundan Kumar To: axboe@kernel.dk, kbusch@kernel.org, hch@lst.de Cc: linux-block@vger.kernel.org, Kundan Kumar , Kanchan Joshi Subject: [PATCH] block: skip start/end time stamping for passthrough IO Date: Thu, 21 Dec 2023 16:42:21 +0530 Message-Id: <20231221111221.4237-1-kundan.kumar@samsung.com> X-Mailer: git-send-email 2.25.1 Precedence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Prlu8Uxd8aO+ZF65a98jo26TSCs16u8nWVaK3nVJf5gq9uxKUt8qZ31f7jd42 yQC7sLyfTGxOSizFGYmGWsxFxYkAJC87c7kCAAA= X-CMS-MailID: 20231221111858epcas5p46c3bf66f33df8652d2da966b3ecbfa60 X-Msg-Generator: CA X-Sendblock-Type: REQ_APPROVE CMS-TYPE: 105P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20231221111858epcas5p46c3bf66f33df8652d2da966b3ecbfa60 References: This patch will avoid start/end time stamping for passthrough IO. This helps to improve IO performance by ~7% Signed-off-by: Kundan Kumar Signed-off-by: Kanchan Joshi --- include/linux/blk-mq.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/linux/blk-mq.h b/include/linux/blk-mq.h index 1ab3081c82ed..04617494db7e 100644 --- a/include/linux/blk-mq.h +++ b/include/linux/blk-mq.h @@ -830,7 +830,8 @@ void blk_mq_end_request_batch(struct io_comp_batch *ib); */ static inline bool blk_mq_need_time_stamp(struct request *rq) { - return (rq->rq_flags & (RQF_IO_STAT | RQF_STATS | RQF_USE_SCHED)); + return (rq->rq_flags & (RQF_IO_STAT | RQF_STATS | RQF_USE_SCHED) && + !blk_rq_is_passthrough(rq)); } static inline bool blk_mq_is_reserved_rq(struct request *rq)