Bart Van Assche
8428496815
IB/srpt: Avoid that aborting a command triggers a kernel warning
[ Upstream commit bd2c52d733 ]
Avoid that the following warning is triggered:
WARNING: CPU: 10 PID: 166 at ../drivers/infiniband/ulp/srpt/ib_srpt.c:2674 srpt_release_cmd+0x139/0x140 [ib_srpt]
CPU: 10 PID: 166 Comm: kworker/u24:8 Not tainted 4.9.4-1-default #1
Workqueue: tmr-fileio target_tmr_work [target_core_mod]
Call Trace:
[<ffffffffaa3c4f70>] dump_stack+0x63/0x83
[<ffffffffaa0844eb>] __warn+0xcb/0xf0
[<ffffffffaa0845dd>] warn_slowpath_null+0x1d/0x20
[<ffffffffc06ba429>] srpt_release_cmd+0x139/0x140 [ib_srpt]
[<ffffffffc06e4377>] target_release_cmd_kref+0xb7/0x120 [target_core_mod]
[<ffffffffc06e4d7f>] target_put_sess_cmd+0x2f/0x60 [target_core_mod]
[<ffffffffc06e15e0>] core_tmr_lun_reset+0x340/0x790 [target_core_mod]
[<ffffffffc06e4816>] target_tmr_work+0xe6/0x140 [target_core_mod]
[<ffffffffaa09e4d3>] process_one_work+0x1f3/0x4d0
[<ffffffffaa09e7f8>] worker_thread+0x48/0x4e0
[<ffffffffaa09e7b0>] ? process_one_work+0x4d0/0x4d0
[<ffffffffaa0a46da>] kthread+0xca/0xe0
[<ffffffffaa0a4610>] ? kthread_park+0x60/0x60
[<ffffffffaa71b775>] ret_from_fork+0x25/0x30
Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Cc: Doug Ledford <dledford@redhat.com>
Cc: Christoph Hellwig <hch@lst.de>
Cc: David Disseldorp <ddiss@suse.de>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-04-13 19:47:51 +02:00
..
2018-03-28 18:39:22 +02:00
2018-02-28 10:18:33 +01:00
2018-03-28 18:39:21 +02:00
2017-12-14 09:28:24 +01:00
2018-02-13 12:35:55 +01:00
2018-01-31 12:55:51 +01:00
2017-03-12 06:41:52 +01:00
2018-04-08 12:13:01 +02:00
2018-03-28 18:39:20 +02:00
2018-01-10 09:29:52 +01:00
2018-03-24 11:00:18 +01:00
2018-03-28 18:39:20 +02:00
2018-02-17 13:21:20 +01:00
2018-03-24 11:00:10 +01:00
2017-12-25 14:23:46 +01:00
2018-02-25 11:05:56 +01:00
2018-02-28 10:18:33 +01:00
2018-02-22 15:43:52 +01:00
2018-03-24 11:00:26 +01:00
2017-12-09 22:01:56 +01:00
2018-03-22 09:17:48 +01:00
2017-11-21 09:23:21 +01:00
2016-11-03 14:46:39 +01:00
2017-12-20 10:07:26 +01:00
2018-03-24 11:00:17 +01:00
2018-03-28 18:39:22 +02:00
2018-04-08 12:12:46 +02:00
2018-03-24 11:00:12 +01:00
2018-01-17 09:38:59 +01:00
2018-03-22 09:17:43 +01:00
2018-03-24 11:00:25 +01:00
2018-03-24 11:00:10 +01:00
2018-02-25 11:05:55 +01:00
2018-03-28 18:39:19 +02:00
2018-04-13 19:47:51 +02:00
2018-04-08 12:12:58 +02:00
2018-03-24 11:00:25 +01:00
2016-10-27 18:43:43 -07:00
2018-03-24 11:00:11 +01:00
2018-02-25 11:05:55 +01:00
2018-03-24 11:00:08 +01:00
2016-10-07 14:42:05 -07:00
2016-09-20 20:57:12 +10:00
2017-08-06 18:59:42 -07:00
2017-09-09 17:39:41 +02:00
2018-04-13 19:47:49 +02:00
2018-04-08 12:12:57 +02:00
2017-12-14 09:28:16 +01:00
2016-10-17 15:43:05 +02:00
2018-03-24 11:00:16 +01:00
2018-04-08 12:12:57 +02:00
2018-03-28 18:39:19 +02:00
2018-04-08 12:12:41 +02:00
2018-04-13 19:47:48 +02:00
2018-03-22 09:17:46 +01:00
2017-08-30 10:21:55 +02:00
2018-03-28 18:39:22 +02:00
2018-03-03 10:23:20 +01:00
2017-08-06 18:59:48 -07:00
2018-03-22 09:17:41 +01:00
2016-10-10 20:16:43 -07:00
2017-12-29 17:42:59 +01:00
2018-04-08 12:12:57 +02:00
2018-04-08 12:12:43 +02:00
2016-11-11 08:45:08 -08:00
2018-03-22 09:17:51 +01:00
2018-01-23 19:57:07 +01:00
2018-03-24 11:00:25 +01:00
2018-03-24 11:00:24 +01:00
2018-03-24 11:00:20 +01:00
2017-01-19 20:18:07 +01:00
2016-10-11 15:06:32 -07:00
2016-09-20 20:57:12 +10:00
2018-03-24 11:00:09 +01:00
2018-03-22 09:17:55 +01:00
2017-12-14 09:28:22 +01:00
2018-03-24 11:00:09 +01:00
2017-03-12 06:41:50 +01:00
2017-10-08 10:26:03 +02:00
2017-01-26 08:24:44 +01:00
2018-04-13 19:47:50 +02:00
2018-03-31 18:11:35 +02:00
2018-04-08 12:12:50 +02:00
2018-03-31 18:11:35 +02:00
2018-04-08 12:13:01 +02:00
2017-07-27 15:08:08 -07:00
2017-01-09 08:32:16 +01:00
2018-04-08 12:12:58 +02:00
2018-03-24 11:00:20 +01:00
2018-02-25 11:05:52 +01:00
2018-04-08 12:12:58 +02:00
2018-04-08 12:12:56 +02:00
2017-10-12 11:51:19 +02:00
2018-03-22 09:17:51 +01:00
2018-02-25 11:05:39 +01:00
2018-03-24 11:00:25 +01:00
2016-10-19 08:11:43 -07:00
2018-03-18 11:18:50 +01:00
2017-03-12 06:41:50 +01:00
2017-03-12 06:41:48 +01:00
2018-03-28 18:39:22 +02:00
2018-03-03 10:23:28 +01:00
2018-02-25 11:05:45 +01:00