diff options
author | Christoph Hellwig <hch@infradead.org> | 2012-10-10 17:37:15 -0400 |
---|---|---|
committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2012-11-06 20:55:45 -0800 |
commit | d977f4377fbc396b888e12fdb3b13118b09ca7db (patch) | |
tree | f3de282b1df951ec599908e24590dbcbac5b9047 /drivers/target/target_core_pr.h | |
parent | 019c4ca621488739b1bfb7597a14ac7f0cbcc908 (diff) | |
download | op-kernel-dev-d977f4377fbc396b888e12fdb3b13118b09ca7db.zip op-kernel-dev-d977f4377fbc396b888e12fdb3b13118b09ca7db.tar.gz |
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>
Diffstat (limited to 'drivers/target/target_core_pr.h')
-rw-r--r-- | drivers/target/target_core_pr.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/target/target_core_pr.h b/drivers/target/target_core_pr.h index 7845143..7616f26 100644 --- a/drivers/target/target_core_pr.h +++ b/drivers/target/target_core_pr.h @@ -63,6 +63,6 @@ extern unsigned char *core_scsi3_pr_dump_type(int); extern int target_scsi3_emulate_pr_in(struct se_cmd *); extern int target_scsi3_emulate_pr_out(struct se_cmd *); -extern void core_setup_reservations(struct se_device *); +extern int target_check_reservation(struct se_cmd *cmd); #endif /* TARGET_CORE_PR_H */ |