]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
scsi: ipr: System hung while dlpar adding primary ipr adapter back
authorWen Xiong <wenxiong@linux.vnet.ibm.com>
Fri, 21 Sep 2018 00:32:12 +0000 (19:32 -0500)
committerJuerg Haefliger <juergh@canonical.com>
Wed, 24 Jul 2019 01:54:25 +0000 (19:54 -0600)
commit3d61d62b271bf36705d804d27726f17a61b1dfaa
treeaf0a9a49899aaee013d34312162a2e1204e37572
parent04d28ed3242a8d5f83f85061b5be58dc43d9cdc8
scsi: ipr: System hung while dlpar adding primary ipr adapter back

BugLink: https://bugs.launchpad.net/bugs/1836654
[ Upstream commit 318ddb34b2052f838aa243d07173e2badf3e630e ]

While dlpar adding primary ipr adapter back, driver goes through adapter
initialization then schedule ipr_worker_thread to start te disk scan by
dropping the host lock, calling scsi_add_device.  Then get the adapter reset
request again, so driver does scsi_block_requests, this will cause the
scsi_add_device get hung until we unblock. But we can't run ipr_worker_thread
to do the unblock because its stuck in scsi_add_device.

This patch fixes the issue.

[mkp: typo and whitespace fixes]

Signed-off-by: Wen Xiong <wenxiong@linux.vnet.ibm.com>
Acked-by: Brian King <brking@linux.vnet.ibm.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
drivers/scsi/ipr.c
drivers/scsi/ipr.h