aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/target/target_core_pr.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@infradead.org>2011-11-03 17:50:40 -0400
committerNicholas Bellinger <nab@linux-iscsi.org>2011-11-04 08:00:08 +0000
commiteacac00ce5bfde8086cd0615fb53c986f7f970fe (patch)
treee58c10a9f55b3704f1eed16eb3e5cfc5038336eb /drivers/target/target_core_pr.h
parenttarget: Add generic active I/O shutdown logic (diff)
downloadlinux-dev-eacac00ce5bfde8086cd0615fb53c986f7f970fe.tar.xz
linux-dev-eacac00ce5bfde8086cd0615fb53c986f7f970fe.zip
target: split core_scsi2_emulate_crh
Split core_scsi2_emulate_crh into one routine each for the reserve and release side. The common code now is in a helper called by both routines. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'drivers/target/target_core_pr.h')
-rw-r--r--drivers/target/target_core_pr.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/target/target_core_pr.h b/drivers/target/target_core_pr.h
index c8f47d064584..4e94a427e314 100644
--- a/drivers/target/target_core_pr.h
+++ b/drivers/target/target_core_pr.h
@@ -47,7 +47,8 @@ extern struct kmem_cache *t10_pr_reg_cache;
extern int core_pr_dump_initiator_port(struct t10_pr_registration *,
char *, u32);
-extern int core_scsi2_emulate_crh(struct se_cmd *);
+extern int target_scsi2_reservation_release(struct se_cmd *cmd);
+extern int target_scsi2_reservation_reserve(struct se_cmd *cmd);
extern int core_scsi3_alloc_aptpl_registration(
struct t10_reservation *, u64,
unsigned char *, unsigned char *, u32,