Message ID | 20170331231205.16640-3-bart.vanassche@sandisk.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-block-owner@kernel.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 5F70A60350 for <patchwork-linux-block@patchwork.kernel.org>; Fri, 31 Mar 2017 23:12:26 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4F0B728510 for <patchwork-linux-block@patchwork.kernel.org>; Fri, 31 Mar 2017 23:12:26 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 43C14285AF; Fri, 31 Mar 2017 23:12:26 +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=-6.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,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 C8FF328510 for <patchwork-linux-block@patchwork.kernel.org>; Fri, 31 Mar 2017 23:12:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754922AbdCaXMZ (ORCPT <rfc822;patchwork-linux-block@patchwork.kernel.org>); Fri, 31 Mar 2017 19:12:25 -0400 Received: from esa3.hgst.iphmx.com ([216.71.153.141]:52437 "EHLO esa3.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753724AbdCaXMX (ORCPT <rfc822;linux-block@vger.kernel.org>); Fri, 31 Mar 2017 19:12:23 -0400 X-IronPort-AV: E=Sophos;i="5.36,254,1486396800"; d="scan'208";a="7345237" Received: from mail-by2nam03lp0052.outbound.protection.outlook.com (HELO NAM03-BY2-obe.outbound.protection.outlook.com) ([216.32.180.52]) by ob1.hgst.iphmx.com with ESMTP; 01 Apr 2017 07:12:15 +0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sharedspace.onmicrosoft.com; s=selector1-sharedspace-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=bQOSPKDOMhcjflVhpGAwSnqnCpcIiehOvmb0eWIp0Ik=; b=VLMo95lLD9wBHMXUnaGMRT72aUCXrfbXc4hRtfjA5HX+HHCsbN53zZ/1c6A5tFq8dQHcoxxzT2Ym9FbFyusFIoiN8Q/gh1v73DtqNdiaTeSRkMI9M8oLW/74/9KbqRE/5qrg9UDc6PMh7tNQTQQWl1iRH0LpQWhNIWIR/uESfr4= Received: from DM2PR04CA031.namprd04.prod.outlook.com (10.141.154.149) by DM2PR04MB400.namprd04.prod.outlook.com (10.141.102.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.991.14; Fri, 31 Mar 2017 23:12:13 +0000 Received: from CO1NAM04FT027.eop-NAM04.prod.protection.outlook.com (2a01:111:f400:7e4d::201) by DM2PR04CA031.outlook.office365.com (2a01:111:e400:243c::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1005.10 via Frontend Transport; Fri, 31 Mar 2017 23:12:13 +0000 Authentication-Results: spf=pass (sender IP is 63.163.107.225) smtp.mailfrom=sandisk.com; HansenPartnership.com; dkim=none (message not signed) header.d=none; HansenPartnership.com; dmarc=bestguesspass action=none header.from=sandisk.com; Received-SPF: Pass (protection.outlook.com: domain of sandisk.com designates 63.163.107.225 as permitted sender) receiver=protection.outlook.com; client-ip=63.163.107.225; helo=milsmgep14.sandisk.com; Received: from milsmgep14.sandisk.com (63.163.107.225) by CO1NAM04FT027.mail.protection.outlook.com (10.152.90.164) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.1005.5 via Frontend Transport; Fri, 31 Mar 2017 23:12:12 +0000 Received: from MILHUBIP03.sdcorp.global.sandisk.com (Unknown_Domain [10.201.67.162]) (using TLS with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by (Symantec Messaging Gateway) with SMTP id FE.F7.19026.C42EED85; Fri, 31 Mar 2017 16:12:12 -0700 (PDT) Received: from milsmgip11.sandisk.com (10.177.9.6) by MILHUBIP03.sdcorp.global.sandisk.com (10.177.9.96) with Microsoft SMTP Server id 14.3.319.2; Fri, 31 Mar 2017 16:12:09 -0700 X-AuditID: 0ac94371-41ba798000004a52-20-58dee24c5f85 Received: from exp-402881.sdcorp.global.sandisk.com ( [10.177.8.100]) by (Symantec Messaging Gateway) with SMTP id B3.9D.11415.942EED85; Fri, 31 Mar 2017 16:12:09 -0700 (PDT) From: Bart Van Assche <bart.vanassche@sandisk.com> To: Jens Axboe <axboe@kernel.dk> CC: <linux-block@vger.kernel.org>, "Martin K . Petersen" <martin.petersen@oracle.com>, James Bottomley <James.Bottomley@HansenPartnership.com>, Bart Van Assche <bart.vanassche@sandisk.com>, Christoph Hellwig <hch@lst.de>, Hannes Reinecke <hare@suse.com> Subject: [PATCH 2/3] scsi: Add scsi_restart_queues() Date: Fri, 31 Mar 2017 16:12:04 -0700 Message-ID: <20170331231205.16640-3-bart.vanassche@sandisk.com> X-Mailer: git-send-email 2.12.0 In-Reply-To: <20170331231205.16640-1-bart.vanassche@sandisk.com> References: <20170331231205.16640-1-bart.vanassche@sandisk.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrBLMWRmVeSWpSXmKPExsXCddJ5ka7Po3sRBtdXiVmsvtvPZrHgzV42 i5WrjzJZbOznsNh7S9ti+fF/TA5sHtMmnWLzuHy21GP3zQY2j49Pb7F4rN9ylcXj8ya5ALYo LpuU1JzMstQifbsErowdp38yFzznqTi1diNbA+Nbri5GTg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48GdtbSdcJ5Bxk1t+etnHCnR+yyUo7z1sg79Zwfy89xhYrmflLi9dYTcCzO DrJiz/FflFT8bNN51xWebbe9emxbZItz3D7b+HTIZP3jbI/Isn+40D7lyBz58hkOd+4vFRfT 8apqLl6z1D9EcPOsu0osxRmJhlrMRcWJAE6SBWTLAQAA MIME-Version: 1.0 Content-Type: text/plain X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:63.163.107.225; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(39400400002)(39450400003)(39850400002)(39860400002)(39410400002)(39840400002)(2980300002)(438002)(189002)(199003)(9170700003)(50466002)(48376002)(305945005)(8936002)(76176999)(81166006)(6666003)(2950100002)(50226002)(6916009)(189998001)(8676002)(110136004)(38730400002)(356003)(77096006)(1076002)(36756003)(4326008)(50986999)(5660300001)(54906002)(53936002)(106466001)(86362001)(5003940100001)(47776003)(33646002)(2906002); DIR:OUT; SFP:1102; SCL:1; SRVR:DM2PR04MB400; H:milsmgep14.sandisk.com; FPR:; SPF:Pass; MLV:sfv; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; CO1NAM04FT027; 1:1anSwcX5HWJsk7MNE8BxtDjF1BuVF7WyMY8jcSHazNchoX52mVqGInqJ7TIdvgVwDAujr+NP+RmXZfgSZz1zO9xQkztzkT/x47zBmMRzkdU6fOVq5TIPTRZU2CQ3ud4gjJ3YP10GTu3U1ArBc32T49TM6NLZpTeAI0eEXVsatWAp+FSlNwpHnq5Vt8WmzJFfrAkT/HpOpPV2xdgNAb1jV/7evPBbz0eVGH58E8DHcEhkIGbKR++WexpUzK7mQilTlnkVtgIJCK+1wdBK2mLcI302uX03u9R0YFiV457UamH/ilmWzf3soJbfshmMMonBfkh1rvwlqEIMu3imbypaxGtmcp+XZftCZ+DNq9mvJaUUg0utt2fECuZ46Hd/dqgvE0eaT7uoFU70ONAdSSj7tirUqT8yGH9dhutjCuvdpqDumm9QKcy3dgcDt8mYqpmM3Us4mMw7csCfzS+mna/EBHrY10C62lCPxiNX9VsE/2my03sR7sHL1jUS47W+ZilIgpEARlwgr5YRJK3s++4Bz8VR3cm2BHEcFqc5Sfunmtw= X-MS-Office365-Filtering-Correlation-Id: 5cb8913a-39f2-4835-581f-08d4788b5d9e X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(8251501002)(2017030254075)(201703131423075)(201703031133081)(201702281549075); SRVR:DM2PR04MB400; X-Microsoft-Exchange-Diagnostics: 1; DM2PR04MB400; 3:Z2iKn9DKtqq8/Fvj1GBJK9rPzOms9vmW0ta69DA8Vlhf9F7IV/PFlzHYC4bl8+458uFdlF3AHuS9agdOsPNO3Pk5QqDCRti/TWwx6XCRKkGmQhxmLMGs/J/hYxXQnRzqsNe2L18aG+viCG3PcLQ8pSD3GrMLHKQ9qiw3bp/5YT6fHBC6qKpr1lgBNnh/92dkSxN95rfFaEXbB6ailb4gkh+zWKB9t0Oy1Lkjpg2b8QH7x5Afs4N46/wPmQ8mGgtJLQrllZQeoMc7yJZp1o90/m3eu1vNlh4AqI8SjgkOuslEEqJFOfpG7EOJac5ewnfOwS7O17DAZFqQc75ueAws8PiCcP0gXE9Sphj9aify+ZcXyMt3jNuB7/cU6WSbRhFVoxsx/BsfkPTt2wivGc0r7XBLjGTId2s5iSlx7IdQC3ZI+mQcBPpn9+GxsPO8APlGvf7yJR3ymEcue/N4tECoHdnu2sRKrmv5GDL7iuB+ICn539LRzunhdwr/lfjMsosWhfLkLwhHB1qAkMxm1hbhwg== X-Microsoft-Exchange-Diagnostics: 1; DM2PR04MB400; 25:KA0wRDUn+DbN7ahE7Y/zZf0djjNKhJJYKcSxlmHgzL+PJw5SpU/8usAcTpQq1TNceUik+uQVFqZT099SJ5ukq0fzFUR+m2n8wbvGRE6zJPhsqAD+KQUiolsjsNjlWIDdZaMh33ZLx/Oo4dHSzyAT71zKlGS1+TkCndzfJKzpSfKBFmFlE4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oKMu/Mg5fxmDjogr2LPK0flXApLxiO7q7yEvyTyk3ZLISg2eQLi8CEKlD6L3sN/h8jVaTnGnvxuLlPg9+szY/ZtSQgOx X-Microsoft-Antispam-PRVS: <DM2PR04MB4007EC9949B41B95A4F53BE81370@DM2PR04MB400.namprd04.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(146099531331640)(42932892334569); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(601004)(2401047)(8121501046)(5005006)(13018025)(13016025)(93006095)(93004095)(10201501046)(3002001)(6055026)(6041248)(20161123555025)(20161123564025)(20161123562025)(201703131423075)(201702281528075)(201703061421075)(20161123560025)(6072148); SRVR:DM2PR04MB400; BCL:0; PCL:0; RULEID:; SRVR:DM2PR04MB400; X-Microsoft-Exchange-Diagnostics: 1; DM2PR04MB400; 4:k3JimFCO5S6E/wHb0arLzMYzGXKz9Tln0iitjxy+9mEAPaMQ/d6Fe5S1s9XS1NcFprkqK+TkPDcsF2NDTSWQMTVVitT9tP8JWL3H1/upxihSmgXnhYuk1ElnGUNgkxgP9lwCvtViulumTOLzVBR/7L6n3MNldEeYri5eqjT+peqEn41+TSiLnWS6rzCDIOKEFHjU3XjaC74e65jTzOqoBNBiCAneuV0P2Gtr7Jw/Bc1ndrZgnIOr/XKo6M4yveLG2DTQPQV1mphHAsuErSI60ciF37G7LGJE28vn564n8KAC2Fp017O/bPYjrLW0/hSNwp5nHjBCw+yVkdSuNY4tmmk+rpirdjqo5LfFQs5gM3o8tcCEkvKViWd5JuU+UUnMSYbjvcMGL+GaMOhNG6JN8tgWtvXqqVqm6lkjQzeB5cp35NKVImDPMyJGJKNhFsiq3ETK4Tn12H3pM+qLyHnG/rHcOHBruYvvugbflnYnUyhb3jyYpb9h+FanEm0D++UXmk2FrZr/1XRa8bUBborAnlHMRb9OSCIcEcn8VoVbJkMiPD5AHJo9bMzHBd8giuatbE30HUpKP7aV/TrwKKH2kQ3OsMfbkeA7ctOG2nzkLxmEUH8qqDmwMxu8/IMpGkcaINYGCCGWc877rzCo2mnYLqeWJ53lN4ICxOj60/O6CNkkA3Q/MgaF/XZU5+evKNNudaCYCX9HtKoemXhFOIfqJGScBKSFi3EZsE62qdvO7qECkvlrK/R/+c2aTwN53p+GLQLMEOFBpjMBsTQ3u+VwM/MRbshNHvU+xp+nPf525uLthhb4sPdn+jzhhHCe+pZdDM6WeR6JncAOFj3mzBj1MWBTqw0MIUlT16lW4Xq7hHY= X-Forefront-PRVS: 02638D901B X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM2PR04MB400; 23:ZNESraN6lckZoHykZwKc66fxXvs0nBmDrtXeuysZkI?= =?us-ascii?Q?2nwO5MsF62Cyb0Au8H6xK84+MmqLtxWP3enwidrBQjpNPHbzWwVGVPA9bPzm?= =?us-ascii?Q?FS1ht8nRmrsP9G5O9Q+yJ+2kVctOGd+TJ/I/Z5EjR7N86ZhSBYpjImOVRQPC?= =?us-ascii?Q?u4RZ/y03dk9/jDaDoGFgfS0F2pABeei/m2ljBzgRluA78LXYFbZosBwMBeRs?= =?us-ascii?Q?1W97k9umjGP25niMChMKxuRnZLbOlEtwDJv2fOvYrVwXUNky/jsaYei0RTO/?= =?us-ascii?Q?dRyWihg2hxpX2/fRP+iECigj+xjBds7ia1MkVhjZJto2m1Cf4p8l14BFQueo?= =?us-ascii?Q?ZlX/c0m//lL9MfzRzU8kToT/sdUqZOvImR/3ZR1JSW/px1RFhpwoLOPyq4ur?= =?us-ascii?Q?KnNtWMKnso9rkYSMQre5QcSXTiZk+5rC75LFWLKgMjZJj+x8eYytzSSI/OOs?= =?us-ascii?Q?tN53xLeNgLuQJ5S4J1eOSrcn7uf++WRMiAZ//z54tMSrlxi83Zypse2pC5K+?= =?us-ascii?Q?u43wkYHrbJNu98dUk/K4z151vh0JrCyV20t/EYTz5cwFZcuXUikqnfQPSskG?= =?us-ascii?Q?HCdQ89KUw53z2MGpSKjwrNVbr4ZOwDkyFpEyH5yHOeoB5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NNdozPilma2iqSkbo5Zds+HagDjQKoaCyPtj/yZskXrvyhyRGvBpnEy7CviiZuojwTK7ruUyJy5NEXEEBs4=; 24:DtERJZSNxOwAuZDpo8dvpnZIUdoyGdRNx6Esbzk+OAp+EMWCk/JiGkrCsEHcs+cMnEGZEYZEQov6V7o31VUbE/g1qH7frGOMjNZ7MhmjhrM= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; DM2PR04MB400; 7:w9V5jJvmypKsa6JkSd9JeHLK2KZO2WS+wwfh2an8Gvgsm4v+ZaDJFhSjhEhOwOKxP7ksxQTzOxIK6+iS2J0W4nm/8nXzYy1oNqP8QwCaoE4Ms+5E+y/V9w3rNfUWoOMDXCMRE+yUiMVbGbPf4EpjNbg9X/FuaHAXVi3C5uh+Vz8sINN1SWdrj9LSYeM/4AyWB82db/3VNrm/V4TbZxz/N7g0wesXjXcykvtsP30HGC1UIFGEqjK9OuZj6x9bIpkj+WZcQbLZsKUZ78Up95qOwyX2RqbMJXU26rQWSHNpLnZUsXy2gmhst99sWmaKF6KHUUfdzngv0baJX1+ulRIjfQ==; 20:qRxsGobNLzkLtJbHZuE8kIGzZ6bt7FBGJ2sMl3+HRYWuKQTVvODEER7ODOeU0uZz5f7ZrEkHXn6ktMFSJDESJh+8B/HVwebWJ2k8H731xqOtUMd2Vx7XamyHa280Lm7ptQP0CxyZ10kTP737MCQgyYV+g5xk6CA1BShK+KtVcsc= X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 Mar 2017 23:12:12.8778 (UTC) X-MS-Exchange-CrossTenant-Id: b61c8803-16f3-4c35-9b17-6f65f441df86 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=b61c8803-16f3-4c35-9b17-6f65f441df86; Ip=[63.163.107.225]; Helo=[milsmgep14.sandisk.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM2PR04MB400 Sender: linux-block-owner@vger.kernel.org Precedence: bulk List-ID: <linux-block.vger.kernel.org> X-Mailing-List: linux-block@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
On 04/01/2017 01:12 AM, Bart Van Assche wrote: > This patch avoids that if multiple SCSI devices are associated with > a SCSI host that a queue can get stuck if scsi_queue_rq() returns > "busy". > > Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com> > Cc: Martin K. Petersen <martin.petersen@oracle.com> > Cc: James Bottomley <James.Bottomley@HansenPartnership.com> > Cc: Christoph Hellwig <hch@lst.de> > Cc: Hannes Reinecke <hare@suse.com> > --- > drivers/scsi/scsi_lib.c | 16 ++++++++++++++++ > 1 file changed, 16 insertions(+) > Reviewed-by: Hannes Reinecke <hare@suse.com> Cheers, Hannes
diff --git a/drivers/scsi/scsi_lib.c b/drivers/scsi/scsi_lib.c index c1519660824b..1d804e33971a 100644 --- a/drivers/scsi/scsi_lib.c +++ b/drivers/scsi/scsi_lib.c @@ -555,6 +555,21 @@ void scsi_run_host_queues(struct Scsi_Host *shost) scsi_run_queue(sdev->request_queue); } +static void scsi_restart_queues(struct request_queue *q) +{ + struct scsi_device *sdev = q->queuedata; + struct Scsi_Host *shost = sdev->host; + unsigned long flags; + + spin_lock_irqsave(shost->host_lock, flags); + __shost_for_each_device(sdev, shost) { + q = sdev->request_queue; + if (q->mq_ops && !blk_queue_dying(q)) + blk_mq_run_hw_queues(q, true); + } + spin_unlock_irqrestore(shost->host_lock, flags); +} + static void scsi_uninit_cmd(struct scsi_cmnd *cmd) { if (!blk_rq_is_passthrough(cmd->request)) { @@ -2156,6 +2171,7 @@ struct request_queue *scsi_alloc_queue(struct scsi_device *sdev) static const struct blk_mq_ops scsi_mq_ops = { .queue_rq = scsi_queue_rq, + .restart_queues = scsi_restart_queues, .complete = scsi_softirq_done, .timeout = scsi_timeout, .init_request = scsi_init_request,
This patch avoids that if multiple SCSI devices are associated with a SCSI host that a queue can get stuck if scsi_queue_rq() returns "busy". Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com> Cc: Martin K. Petersen <martin.petersen@oracle.com> Cc: James Bottomley <James.Bottomley@HansenPartnership.com> Cc: Christoph Hellwig <hch@lst.de> Cc: Hannes Reinecke <hare@suse.com> --- drivers/scsi/scsi_lib.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+)