summaryrefslogtreecommitdiff
path: root/drivers/target/target_core_device.c
diff options
context:
space:
mode:
authorMike Christie <mchristi@redhat.com>2017-12-19 13:03:58 +0300
committerNicholas Bellinger <nab@linux-iscsi.org>2018-01-17 05:05:04 +0300
commit892782caf19a97ccc95df51b3bb659ecacff986a (patch)
tree0f5ba3bad665c1f8f2ba180ba06a33d53f15eadc /drivers/target/target_core_device.c
parent8dc31ff9298963425f5c4bb6011bc2bedb76b1e9 (diff)
downloadlinux-892782caf19a97ccc95df51b3bb659ecacff986a.tar.xz
tcmu: allow userspace to reset ring
This patch adds 2 tcmu attrs to block/unblock a device and reset the ring buffer. They are used when the userspace daemon has crashed or forced to shutdown while IO is executing. On restart, the daemon can block the device so new IO is not sent to userspace while it puts the ring in a clean state. Notes: The reset ring opreation is specific to tcmu, but the block one could be generic. I kept it tcmu specific, because it requires some extra locking/state checks in the main IO path and since other backend modules did not need this functionality I thought only tcmu should take the perf hit. Signed-off-by: Mike Christie <mchristi@redhat.com> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'drivers/target/target_core_device.c')
0 files changed, 0 insertions, 0 deletions