]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.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>
Wed, 7 Nov 2012 04:55:45 +0000 (20:55 -0800)
commitd977f4377fbc396b888e12fdb3b13118b09ca7db
treef3de282b1df951ec599908e24590dbcbac5b9047
parent019c4ca621488739b1bfb7597a14ac7f0cbcc908
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