From mboxrd@z Thu Jan 1 00:00:00 1970 From: keith.busch@intel.com (Keith Busch) Date: Mon, 27 Feb 2017 14:15:00 -0500 Subject: [PATCHv2 2/2] nvme: Complete all stuck requests In-Reply-To: <4c952c67-9871-249d-86b0-5f81acf00571@grimberg.me> References: <1487896561-10454-1-git-send-email-keith.busch@intel.com> <1487896561-10454-2-git-send-email-keith.busch@intel.com> <20170227150107.GA5789@localhost.localdomain> <4c952c67-9871-249d-86b0-5f81acf00571@grimberg.me> Message-ID: <20170227191459.GA1170@localhost.localdomain> On Mon, Feb 27, 2017@07:27:51PM +0200, Sagi Grimberg wrote: > OK, I think we can get it for fabrics too, need to figure out how to > handle it there too. > > Do you have a reproducer? To repro, I have to run a buffered writer workload then put the system into S3. This fio job seems to reproduce for me: fio --name=global --filename=/dev/nvme0n1 --bsrange=4k-128k --rw=randwrite --ioengine=libaio --iodepth=8 --numjobs=8 --name=foobar I use rtcwake to test suspend/resume: rtcwake -m mem -s 10 Without the patch we'll get stuck after "Disabling non-boot CPUs ..." when blk-mq waits to freeze some entered queues after nvme was disabled.