]> git.baikalelectronics.ru Git - kernel.git/commit
tcmu: move expired command completion to unmap thread
authorMike Christie <mchristi@redhat.com>
Tue, 28 Nov 2017 18:40:31 +0000 (12:40 -0600)
committerNicholas Bellinger <nab@linux-iscsi.org>
Fri, 12 Jan 2018 23:07:13 +0000 (15:07 -0800)
commit2c1114a2bf688c57f29416076e5b5975242b8552
treeb23d76cc19a8e4fd937ecf94ed517a8571cd17bc
parentd33f1a2e4ada22c2da66fc7b25a99e11cf08645c
tcmu: move expired command completion to unmap thread

This moves the expired command completion handling to
the unmap wq, so the next patch can use a mutex
in tcmu_check_expired_cmd.

Note:
tcmu_device_timedout's use of spin_lock_irq was not needed.
The commands_lock is used between thread context (tcmu_queue_cmd_ring
and tcmu_irqcontrol (even though this is named irqcontrol it is not
run in irq context)) and timer/bh context. In the timer/bh context
bhs are disabled, so you need to use the _bh lock calls from the
thread context callers.

Signed-off-by: Mike Christie <mchristi@redhat.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/target_core_user.c