Tyrel Datwyler
aa343c695a
scsi: ibmvscsi: fix tripping of blk_mq_run_hw_queue WARN_ON
...
After a successful SRP login response we call scsi_unblock_requests() to
kick any pending IOs. The callback to process this SRP response happens in
a tasklet and therefore is in softirq context. The result of such is that
when blk-mq is enabled, it is no longer safe to call scsi_unblock_requests()
from this context. The result of duing so triggers the following WARN_ON
splat in dmesg after a host reset or CRQ reenablement.
WARNING: CPU: 0 PID: 0 at block/blk-mq.c:1375 __blk_mq_run_hw_queue+0x120/0x180
Modules linked in:
CPU: 0 PID: 0 Comm: swapper/0 Not tainted 5.0.0-rc8 #4
NIP [c0000000009771e0] __blk_mq_run_hw_queue+0x120/0x180
LR [c000000000977484] __blk_mq_delay_run_hw_queue+0x244/0x250
Call Trace:
__blk_mq_delay_run_hw_queue+0x244/0x250
blk_mq_run_hw_queue+0x8c/0x1c0
blk_mq_run_hw_queues+0x60/0x90
scsi_run_queue+0x1e4/0x3b0
scsi_run_host_queues+0x48/0x80
login_rsp+0xb0/0x100
ibmvscsi_handle_crq+0x30c/0x3e0
ibmvscsi_task+0x54/0xe0
tasklet_action_common.isra.3+0xc4/0x1a0
__do_softirq+0x174/0x3f4
irq_exit+0xf0/0x120
__do_irq+0xb0/0x210
call_do_irq+0x14/0x24
do_IRQ+0x9c/0x130
hardware_interrupt_common+0x14c/0x150
This patch fixes the issue by introducing a new host action for unblocking
the scsi requests in our seperate work thread.
Signed-off-by: Tyrel Datwyler <tyreld@linux.ibm.com >
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com >
2019-06-18 19:46:22 -04:00
..
2019-03-25 22:19:01 -04:00
2019-05-08 10:12:46 -07:00
2019-02-25 21:37:26 -05:00
2019-01-22 21:38:21 -05:00
2018-12-18 23:19:21 -05:00
2019-05-08 10:12:46 -07:00
2019-05-07 12:48:10 -07:00
2019-05-08 10:12:46 -07:00
2019-04-08 12:01:02 +01:00
2019-05-08 10:12:46 -07:00
2019-04-15 22:15:06 -04:00
2019-03-09 16:53:47 -08:00
2018-11-09 19:17:14 -07:00
2019-02-08 17:33:00 -05:00
2019-05-21 06:16:22 -04:00
2019-01-29 01:16:09 -05:00
2019-04-12 21:30:12 -04:00
2019-06-18 19:46:22 -04:00
2019-02-04 21:23:59 -05:00
2019-01-08 22:27:24 -05:00
2019-05-21 06:16:22 -04:00
2019-05-21 06:16:22 -04:00
2019-06-18 19:46:22 -04:00
2019-06-18 19:46:20 -04:00
2019-05-08 10:12:46 -07:00
2019-03-19 17:13:37 -04:00
2019-01-29 01:28:49 -05:00
2019-04-03 23:45:59 -04:00
2019-04-29 08:34:10 -04:00
2019-05-08 10:12:46 -07:00
2019-04-29 17:24:52 -04:00
2019-04-12 21:27:23 -04:00
2019-03-19 15:29:10 -04:00
2019-01-29 00:40:54 -05:00
2019-04-08 18:39:14 -05:00
2019-05-08 10:12:46 -07:00
2019-02-25 21:37:25 -05:00
2019-03-02 11:39:54 -08:00
2018-12-19 21:54:07 -05:00
2018-10-17 21:58:51 -04:00
2019-01-29 01:33:00 -05:00
2018-08-30 07:27:22 -04:00
2019-01-08 07:58:37 -05:00
2018-12-18 23:19:21 -05:00
2018-12-18 23:13:12 -05:00
2018-12-18 23:19:21 -05:00
2018-12-18 23:19:21 -05:00
2018-12-18 23:13:12 -05:00
2018-12-18 23:13:12 -05:00
2018-06-19 22:02:25 -04:00
2018-10-15 23:00:38 -04:00
2019-01-22 10:21:43 +01:00
2019-03-19 17:08:35 -04:00
2018-12-18 23:13:12 -05:00
2018-06-26 12:27:06 -04:00
2018-12-18 23:19:21 -05:00
2018-12-18 23:19:21 -05:00
2019-03-19 17:10:34 -04:00
2019-04-09 14:19:06 +02:00
2018-10-17 21:38:20 -04:00
2019-06-18 19:46:18 -04:00
2019-06-18 19:46:18 -04:00
2019-06-18 19:46:18 -04:00
2019-06-18 19:46:18 -04:00
2018-09-25 20:45:53 -04:00
2018-12-18 23:19:21 -05:00
2019-01-08 21:58:35 -05:00
2019-01-08 21:58:35 -05:00
2019-01-08 21:57:42 -05:00
2019-03-25 22:22:44 -04:00
2019-01-08 21:58:35 -05:00
2018-12-18 23:19:21 -05:00
2019-05-21 06:16:21 -04:00
2019-06-18 19:46:18 -04:00
2019-06-18 19:46:18 -04:00
2019-06-18 19:46:18 -04:00
2019-02-25 21:44:40 -05:00
2019-04-08 18:37:37 -05:00
2018-12-18 23:13:12 -05:00
2019-02-08 17:33:00 -05:00
2018-09-21 12:35:39 -04:00
2018-12-18 23:19:21 -05:00
2018-11-06 21:31:28 -05:00
2019-02-05 21:29:21 -05:00
2018-10-15 23:00:38 -04:00
2019-06-18 19:46:18 -04:00
2019-05-21 06:16:22 -04:00
2019-05-21 06:16:22 -04:00
2018-12-18 23:13:12 -05:00
2018-12-18 23:19:21 -05:00
2018-12-18 23:19:21 -05:00
2019-06-18 19:46:18 -04:00
2018-12-18 23:13:12 -05:00
2018-06-19 22:02:25 -04:00
2019-01-08 07:58:37 -05:00
2018-12-18 23:13:12 -05:00
2019-03-19 17:46:16 -04:00
2018-12-28 14:48:06 -08:00
2018-10-17 21:06:49 -04:00
2018-12-19 21:43:30 -05:00
2018-10-17 21:07:54 -04:00
2018-12-18 23:13:12 -05:00
2019-03-19 14:18:46 -04:00
2018-09-28 02:17:51 -04:00
2018-06-19 22:02:25 -04:00
2019-01-29 01:26:57 -05:00
2019-01-03 18:57:57 -08:00
2019-04-08 18:39:04 -05:00
2018-12-18 23:13:12 -05:00
2019-04-08 12:09:05 +01:00
2019-03-19 17:11:37 -04:00
2018-12-18 23:19:21 -05:00
2019-02-13 22:07:03 -05:00
2019-02-13 22:07:03 -05:00
2018-08-30 07:21:04 -04:00
2019-03-09 16:53:47 -08:00
2018-04-20 19:14:28 -04:00
2019-05-21 06:16:21 -04:00
2019-04-03 23:27:23 -04:00
2019-04-03 23:27:23 -04:00
2019-05-21 06:16:21 -04:00
2019-05-21 06:16:21 -04:00
2019-05-21 06:16:21 -04:00
2019-05-21 06:16:21 -04:00
2019-06-18 19:46:17 -04:00
2019-06-18 19:46:17 -04:00
2019-04-15 22:25:00 -04:00
2019-05-21 06:16:21 -04:00
2019-05-21 06:16:21 -04:00
2019-05-21 06:16:21 -04:00
2019-05-21 06:16:21 -04:00
2019-05-21 06:16:22 -04:00
2019-05-21 06:16:22 -04:00
2019-05-21 06:16:22 -04:00
2019-05-21 06:16:22 -04:00
2019-06-18 19:46:17 -04:00
2018-06-19 22:02:25 -04:00
2019-05-21 06:16:23 -04:00
2019-05-21 06:16:23 -04:00
2019-06-18 19:46:17 -04:00
2019-02-12 22:33:00 -05:00
2019-05-21 06:16:23 -04:00
2019-05-21 06:16:23 -04:00
2018-12-18 23:19:21 -05:00
2018-08-02 15:22:13 -06:00
2019-05-21 06:16:23 -04:00
2019-06-18 19:46:18 -04:00
2018-12-18 23:19:21 -05:00
2019-04-03 23:31:03 -04:00
2018-12-18 23:19:21 -05:00
2018-10-15 23:00:38 -04:00
2018-12-07 21:56:06 -05:00
2019-05-08 10:12:46 -07:00
2018-12-28 14:48:06 -08:00
2018-12-18 23:13:12 -05:00
2018-11-15 14:27:08 -05:00
2018-12-18 23:13:12 -05:00
2018-10-17 21:38:20 -04:00