Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1620781

Re: [PATCH] block-mq: set both block queue and hardware queue restart bit for restart

Path csiph.com!news.mixmin.net!aioe.org!bofh.it!news.nic.it!robomod
From Bart Van Assche <Bart.VanAssche@sandisk.com>
Newsgroups linux.kernel
Subject Re: [PATCH] block-mq: set both block queue and hardware queue restart bit for restart
Date Tue, 11 Apr 2017 01:50:01 +0200
Message-ID <tuReh-7C4-3@gated-at.bofh.it> (permalink)
References <tt3jz-18Z-9@gated-at.bofh.it> <tt3CW-1eT-3@gated-at.bofh.it> <tt6r8-36F-11@gated-at.bofh.it> <tt6AN-39N-1@gated-at.bofh.it> <tt7dv-3GF-3@gated-at.bofh.it>
X-Original-To "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>, "linux-block@vger.kernel.org" <linux-block@vger.kernel.org>, "kys@microsoft.com" <kys@microsoft.com>, "longli@microsoft.com" <longli@microsoft.com>, "axboe@kernel.dk" <axboe@kernel.dk>
X-Ironport-Av E=Sophos;i="5.37,184,1488816000"; d="scan'208";a="9590938"
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=LuGZKvNmc8F0kJQ8UeUFMoNlJ0n0seliC2xyuiYjj+k=; b=GbkpzeNBUXtTa9atN/vNLmyPNKGEciGbywByj1znQfiIT6OTufDpC5GuwYwcAW7m1y60XipCjOeR0MuY53PegzfM8loZPUG5ydPMuzPexwyH+R8VSedonR0j6S0fhu/Zz8Leu1Yiq/KYWk/2cmYPAArSLVCMIZQd0pm+lP/SBxs=
Thread-Topic [PATCH] block-mq: set both block queue and hardware queue restart bit for restart
Thread-Index AQHSrmzSSZ/m2CRLtUe7E7wgCa1JMaG3faCAgAA0AwCAAAICgIAACeaAgAePRgA=
Accept-Language en-US
Content-Language en-US
Authentication-Results vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=none action=none header.from=sandisk.com;
X-Ms-Exchange-Messagesentrepresentingtype 1
X-Originating-IP [63.163.107.100]
X-Microsoft-Exchange-Diagnostics 1;CY1PR0401MB1535;7:E92UKKN/v9ZkFJWbEEoToCvDIbl8RrL6qh1FbWN5/88UQPb87TJMdG4vNn5s18aWR1jH8V41DCsZJYlhQx4V3CL0DC/eEOGlWGoKr0virr+OcDfy5YPl+FB4nIzR4Qv3fNg8NnzZFuf+HA+nUqYLe0ki7TNSAJoaCpdGAnOf65voCQYulmWtDGs7gH2CsrXy4CaC3ev+P5WpnAFkGuiAt42dqIHemPgZi8/calacNRIPOrzF/oK5eq+lzJCPJAG4Soj+/hsm89WrpZKrn5W/9Ma6vGIIw3ALpjdtmM0yHSxlMZjcuLIwmqDVSy1NrFxybf3gpSLrjE8isa9ZALWE9w==;20:99/pmK7n0/7ltef3lcxzJTz3hiTO352tww8XdFuM/gZ+1ADNQ9E08Z/WSCGGDXKRbo/EtZBfO5Xd6YQBkjflm5ftbmDbEqxZZivkAwaji7kgoKUVedJ5+H4dVLn/r3FvXswackQs1uKUGalzHiaqCmDZ4w4fX+RJyWU9Aa2obKU=
X-Ms-Office365-Filtering-Correlation-ID d16993bf-a879-48f1-a824-08d4806bf932
X-Ms-Office365-Filtering-Ht Tenant
X-Microsoft-Antispam UriScan:;BCL:0;PCL:0;RULEID:(22001)(2017030254075)(48565401081)(201703131423075)(201703031133081);SRVR:CY1PR0401MB1535;
Wdcipoutbound EOP-TRUE
X-Microsoft-Antispam-Prvs <CY1PR0401MB1535425608BA753420696FCA81010@CY1PR0401MB1535.namprd04.prod.outlook.com>
X-Exchange-Antispam-Report-Test UriScan:(9452136761055)(67672495146484)(42932892334569);
X-Exchange-Antispam-Report-Cfa-Test BCL:0;PCL:0;RULEID:(6040450)(601004)(2401047)(8121501046)(5005006)(3002001)(10201501046)(93006095)(93001095)(6055026)(6041248)(20161123564025)(20161123560025)(20161123555025)(20161123562025)(201703131423075)(201702281528075)(201703061421075)(6072148);SRVR:CY1PR0401MB1535;BCL:0;PCL:0;RULEID:;SRVR:CY1PR0401MB1535;
X-Forefront-Prvs 027367F73D
X-Forefront-Antispam-Report SFV:NSPM;SFS:(10019020)(6009001)(39450400003)(39860400002)(39850400002)(39400400002)(39410400002)(39840400002)(377454003)(13464003)(377424004)(24454002)(2950100002)(25786009)(53546009)(5660300001)(189998001)(2421001)(66066001)(3660700001)(33646002)(38730400002)(103116003)(3280700002)(229853002)(1511001)(2906002)(4326008)(122556002)(2900100001)(102836003)(81166006)(2201001)(99286003)(8666007)(575784001)(86362001)(345774005)(6436002)(305945005)(8936002)(2561002)(53936002)(6512007)(6506006)(8676002)(77096006)(3846002)(6486002)(6116002)(7736002)(76176999)(93886004)(54356999)(36756003)(50986999);DIR:OUT;SFP:1102;SCL:1;SRVR:CY1PR0401MB1535;H:CY1PR0401MB1536.namprd04.prod.outlook.com;FPR:;SPF:None;MLV:sfv;LANG:en;
Spamdiagnosticoutput 1:99
Spamdiagnosticmetadata NSPM
Content-Type text/plain; charset="iso-8859-1"
Content-ID <C5A0962384C569489F66D72F699A82DD@namprd04.prod.outlook.com>
Content-Transfer-Encoding quoted-printable
MIME-Version 1.0
X-Originatororg sandisk.com
X-Ms-Exchange-Crosstenant-Originalarrivaltime 10 Apr 2017 23:47:39.4463 (UTC)
X-Ms-Exchange-Crosstenant-Fromentityheader Hosted
X-Ms-Exchange-Crosstenant-ID b61c8803-16f3-4c35-9b17-6f65f441df86
X-Ms-Exchange-Transport-Crosstenantheadersstamped CY1PR0401MB1535
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 82
Organization linux.* mail to news gateway
X-Original-Cc "sthemmin@microsoft.com" <sthemmin@microsoft.com>
X-Original-Date Mon, 10 Apr 2017 23:47:39 +0000
X-Original-Message-ID <1491868058.4199.28.camel@sandisk.com>
X-Original-References <1491437781-3565-1-git-send-email-longli@exchange.microsoft.com> <1491438735.2787.18.camel@sandisk.com> <BN3PR03MB2227E6DBCAE0365A013B7972CE0D0@BN3PR03MB2227.namprd03.prod.outlook.com> <1491450335.8994.1.camel@sandisk.com> <DM5PR03MB2490E70D9B18A701A81005C8A00D0@DM5PR03MB2490.namprd03.prod.outlook.com>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref csiph.com linux.kernel:1620781

Show key headers only | View raw


On Thu, 2017-04-06 at 04:21 +0000, KY Srinivasan wrote:
> > -----Original Message-----
> > From: Bart Van Assche [mailto:Bart.VanAssche@sandisk.com]
> > Sent: Wednesday, April 5, 2017 8:46 PM
> > To: linux-kernel@vger.kernel.org; linux-block@vger.kernel.org; Long Li
> > <longli@microsoft.com>; axboe@kernel.dk
> > Cc: Stephen Hemminger <sthemmin@microsoft.com>; KY Srinivasan
> > <kys@microsoft.com>
> > Subject: Re: [PATCH] block-mq: set both block queue and hardware queue
> > restart bit for restart
> > 
> > On Thu, 2017-04-06 at 03:38 +0000, Long Li wrote:
> > > > -----Original Message-----
> > > > From: Bart Van Assche [mailto:Bart.VanAssche@sandisk.com]
> > > > 
> > > > Please drop this patch. I'm working on a better solution.
> > > 
> > > Thank you. Looking forward to your patch.
> > 
> > Hello Long,
> > 
> > It would help if you could share the name of the block or SCSI driver with
> > which you ran into that lockup and also if you could share the name of the
> > I/O scheduler used in your test.
> 
> The tests that indicated the issue were run Hyper-V. The driver is storvsc_drv.c
> The I/O scheduler was I think noop.

Hello Long and K.Y.,

Thank you for the feedback. Can you repeat your test with kernel v4.11-rc6? The
patches that went into the block layer for v4.11-rc6 should be sufficient to fix
this:

$ PAGER= git log --format=short v4.11-rc5..v4.11-rc6 block include/linux/blk*  
commit 6d8c6c0f97ad8a3517c42b179c1dc8e77397d0e2
Author: Bart Van Assche <bart.vanassche@sandisk.com>

    blk-mq: Restart a single queue if tag sets are shared

commit 7587a5ae7eef0439f7be31f1b5959af062bbc5ec
Author: Bart Van Assche <bart.vanassche@sandisk.com>

    blk-mq: Introduce blk_mq_delay_run_hw_queue()

commit ebe8bddb6e30d7a02775b9972099271fc5910f37
Author: Omar Sandoval <osandov@fb.com>

    blk-mq: remap queues when adding/removing hardware queues

commit 54d5329d425650fafaf90660a139c771d2d49cae
Author: Omar Sandoval <osandov@fb.com>

    blk-mq-sched: fix crash in switch error path

commit 93252632e828da3e90241a1c0e766556abf71598
Author: Omar Sandoval <osandov@fb.com>

    blk-mq-sched: set up scheduler tags when bringing up new queues

commit 6917ff0b5bd4139e08a3f3146529dcb3b95ba7a6
Author: Omar Sandoval <osandov@fb.com>

    blk-mq-sched: refactor scheduler initialization

commit 81380ca10778b99dce98940cfc993214712df335
Author: Omar Sandoval <osandov@fb.com>

    blk-mq: use the right hctx when getting a driver tag fails

commit ac77a0c463c1d7d659861f7b6d1261970dd3282a
Author: Minchan Kim <minchan@kernel.org>

    block: do not put mq context in blk_mq_alloc_request_hctx

Bart.

Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

Re: [PATCH] block-mq: set both block queue and hardware queue restart  bit for restart Bart Van Assche <Bart.VanAssche@sandisk.com> - 2017-04-11 01:50 +0200
  RE: [PATCH] block-mq: set both block queue and hardware queue restart  bit for restart Long Li <longli@microsoft.com> - 2017-04-14 01:20 +0200

csiph-web