]> git.karo-electronics.de Git - karo-tx-linux.git/commit
target: simplify reservations code
authorChristoph Hellwig <hch@infradead.org>
Wed, 10 Oct 2012 21:37:15 +0000 (17:37 -0400)
committerNicholas Bellinger <nab@linux-iscsi.org>
Fri, 26 Oct 2012 19:30:14 +0000 (12:30 -0700)
commit1132c755958d907d746f771771f2a35c085c990e
treee1a4d376141c6ef7905f8f43dc20ac5333f2cfa3
parent91ee33ef06444926564e30dfc5a9a941026557ea
target: simplify reservations code

We do not support host-level reservations for the pscsi backend, and all
virtual backends are newere than SCSI-2, so just make the combined
SPC-3 + SCSI-2 support the only supported variant and kill the switches
for the different implementations, given that this code handles the no-op
version just fine.

(hch: Update DRF_SPC2_RESERVATIONS lock usage)

Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/target/target_core_configfs.c
drivers/target/target_core_device.c
drivers/target/target_core_pr.c
drivers/target/target_core_pr.h
drivers/target/target_core_spc.c
drivers/target/target_core_transport.c
include/target/target_core_base.h