Bart Van Assche
9ff9d15edd
target: Invoke release_cmd() callback without holding a spinlock
...
This patch fixes the following kernel warning because it avoids that
IRQs are disabled while ft_release_cmd() is invoked (fc_seq_set_resp()
invokes spin_unlock_bh()):
WARNING: CPU: 3 PID: 117 at kernel/softirq.c:150 __local_bh_enable_ip+0xaa/0x110()
Call Trace:
[<ffffffff814f71eb>] dump_stack+0x4f/0x7b
[<ffffffff8105e56a>] warn_slowpath_common+0x8a/0xc0
[<ffffffff8105e65a>] warn_slowpath_null+0x1a/0x20
[<ffffffff81062b2a>] __local_bh_enable_ip+0xaa/0x110
[<ffffffff814ff229>] _raw_spin_unlock_bh+0x39/0x40
[<ffffffffa03a7f94>] fc_seq_set_resp+0xe4/0x100 [libfc]
[<ffffffffa02e604a>] ft_free_cmd+0x4a/0x90 [tcm_fc]
[<ffffffffa02e6972>] ft_release_cmd+0x12/0x20 [tcm_fc]
[<ffffffffa042bd66>] target_release_cmd_kref+0x56/0x90 [target_core_mod]
[<ffffffffa042caf0>] target_put_sess_cmd+0xc0/0x110 [target_core_mod]
[<ffffffffa042cb81>] transport_release_cmd+0x41/0x70 [target_core_mod]
[<ffffffffa042d975>] transport_generic_free_cmd+0x35/0x420 [target_core_mod]
Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>
Acked-by: Joern Engel <joern@logfs.org>
Reviewed-by: Andy Grover <agrover@redhat.com>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Hannes Reinecke <hare@suse.de>
Cc: Sagi Grimberg <sagig@mellanox.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
2015-11-28 19:33:23 -08:00
..
2015-11-28 19:33:08 -08:00
2015-11-13 20:35:54 -08:00
2015-10-13 22:17:49 -07:00
2015-10-13 22:17:49 -07:00
2015-04-19 22:41:12 -07:00
2015-04-19 22:41:12 -07:00
2015-07-04 14:13:43 -07:00
2015-06-01 00:26:38 -07:00
2015-10-13 22:17:49 -07:00
2015-09-24 23:17:27 -07:00
2015-10-13 22:17:49 -07:00
2015-07-04 14:13:43 -07:00
2015-07-04 14:13:43 -07:00
2015-05-30 22:41:42 -07:00
2015-09-24 23:17:23 -07:00
2015-10-21 14:42:38 -06:00
2012-11-06 20:55:43 -08:00
2015-10-13 22:17:49 -07:00
2015-09-24 23:17:07 -07:00
2015-06-15 23:26:01 -07:00
2015-07-29 08:55:15 -06:00
2015-06-23 15:55:44 -07:00
2015-09-02 13:22:38 -07:00
2014-01-19 02:22:05 +00:00
2015-11-28 19:33:15 -08:00
2015-09-11 19:00:42 -07:00
2015-10-13 22:17:49 -07:00
2015-11-28 19:33:23 -08:00
2015-09-24 23:17:21 -07:00
2015-11-28 19:33:23 -08:00
2015-07-04 14:13:43 -07:00
2015-06-23 00:43:02 -07:00
2015-11-28 19:32:52 -08:00
2015-09-11 00:32:26 -07:00
2013-09-10 16:48:43 -07:00