From patchwork Fri Oct 26 16:01:08 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "jianchao.wang" X-Patchwork-Id: 10657057 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 77AA613A9 for ; Fri, 26 Oct 2018 08:02:56 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 678BB2BDBB for ; Fri, 26 Oct 2018 08:02:56 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5A95F2BDCE; Fri, 26 Oct 2018 08:02:56 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI, UNPARSEABLE_RELAY 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 0A1242BDBB for ; Fri, 26 Oct 2018 08:02:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725983AbeJZQi4 (ORCPT ); Fri, 26 Oct 2018 12:38:56 -0400 Received: from aserp2120.oracle.com ([141.146.126.78]:55464 "EHLO aserp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725914AbeJZQiz (ORCPT ); Fri, 26 Oct 2018 12:38:55 -0400 Received: from pps.filterd (aserp2120.oracle.com [127.0.0.1]) by aserp2120.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w9Q7wxlA191817; Fri, 26 Oct 2018 08:02:51 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id; s=corp-2018-07-02; bh=1ab5QSGL4fxsXV8DEmcKtwjhzsKgGkshoYiL4IUUqW0=; b=R5ru+q6hZMhv7n20gZUjmm5xAROQYcQvJ3o5XaKtExkPeGUDH07bolJ2BvfpKNCxVTDT PqeBSxMyMdieaATDlF8HiSlRPuonCUn0mSZURj+scakWoixpv8OH2hGXq3L9R0HO3VuN q32iaAP5SXQ4elQ697U+m9SNQ3B2KEyg2J2Ob4DYd1iTADoFLzjLiC1+SHUVKAebcox0 IXoAXT4GbCF5NAFD8QlGjLym6kwWA0No21cFO6X8+yU+AHNJjQ6ECQtDK9iYnrOwdvvb w1ZfAJIBi3uJgv5noU+7OunVfk+/AF4S+PHQHhMzGJBku4ZZzjJesh7Ek+6XXRVOMURc ng== Received: from aserv0022.oracle.com (aserv0022.oracle.com [141.146.126.234]) by aserp2120.oracle.com with ESMTP id 2n7vaqdrew-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 26 Oct 2018 08:02:51 +0000 Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by aserv0022.oracle.com (8.14.4/8.14.4) with ESMTP id w9Q82o3i000990 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 26 Oct 2018 08:02:51 GMT Received: from abhmp0020.oracle.com (abhmp0020.oracle.com [141.146.116.26]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id w9Q82oE2004406; Fri, 26 Oct 2018 08:02:50 GMT Received: from will-ThinkCentre-M93p.cn.oracle.com (/10.182.70.234) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 26 Oct 2018 01:02:49 -0700 From: Jianchao Wang To: axboe@kernel.dk Cc: ming.lei@redhat.com, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH V2 0/3] blk-mq: refactor and fix on issue request directly Date: Sat, 27 Oct 2018 00:01:08 +0800 Message-Id: <1540569671-6589-1-git-send-email-jianchao.w.wang@oracle.com> X-Mailer: git-send-email 2.7.4 X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9057 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=1 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=563 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1807170000 definitions=main-1810260072 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 Hi Jens The 1st patch refactors the code of issue request directly. It merges the blk_mq_try_issue_directly and __blk_mq_try_issue_directly and make blk_mq_try_issue_directly handle return value of .queue_rq itself. The 2nd patch make blk_mq_sched_insert_requests issue request directly with bypass "false" instead of the "true", then needn't to handle the non-issued requests any more. The 3rd patch ensures the hctx to be ran on its mapped cpu in issue directly path. V2: - Add 1st and 2nd patch. Jianchao Wang(3) blk-mq: refactor the code of issue request directly blk-mq: issue directly with bypass 'false' in blk_mq_sched_insert_requests blk-mq: ensure hctx to be ran on mapped cpu when issue block/blk-mq-sched.c | 8 ++-- block/blk-mq.c | 128 ++++++++++++++++++++++++--------------------------- 2 files changed, 63 insertions(+), 73 deletions(-)