Resets during user commands leads to hung task and controller stuck in connecting
Sagi Grimberg
sagi at grimberg.me
Sun Nov 13 03:03:44 PST 2022
On 11/11/22 23:50, Jonathan Derrick wrote:
> Hi,
>
> I'm (again) seeing a hung task when doing resets and formats simultaneously.
> Controller state is left in 'connecting'
>
> Using nvme.git/nvme-6.2 as of 'nvme: implement the DEAC bit for the Write Zeroes command',
> but I have also repro'd with Christoph's latest reset/probe-split set
>
>
> ctrl="nvme0"
> nsid=1
> pci="/sys/block/${ctrl}n${nsid}/device/"
> echo 30 > /proc/sys/kernel/hung_task_timeout_secs
> while true; do
> nvme format -f /dev/${ctrl}n${nsid} &
How long to it take the format to complete?
> echo 1 > $pci/reset_controller &
> done
What happens if you set io_timeout to 20 instead of 30? (given
that you bound hung tasks at 30 seconds...
More information about the Linux-nvme
mailing list