Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 286514
b: refs/heads/master
c: c165f69
h: refs/heads/master
v: v3
  • Loading branch information
Jörn Engel authored and Nicholas Bellinger committed Dec 14, 2011
1 parent 486f06d commit ef482f4
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 18 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 90c161b643d9531d271110876a14e68b49172d8a
refs/heads/master: c165f69c2ccbbb4ecf16c5d29d65922286bf62ff
15 changes: 0 additions & 15 deletions trunk/drivers/target/target_core_pr.c
Original file line number Diff line number Diff line change
Expand Up @@ -2981,21 +2981,6 @@ static void core_scsi3_release_preempt_and_abort(
}
}

int core_scsi3_check_cdb_abort_and_preempt(
struct list_head *preempt_and_abort_list,
struct se_cmd *cmd)
{
struct t10_pr_registration *pr_reg, *pr_reg_tmp;

list_for_each_entry_safe(pr_reg, pr_reg_tmp, preempt_and_abort_list,
pr_reg_abort_list) {
if (pr_reg->pr_res_key == cmd->pr_res_key)
return 0;
}

return 1;
}

static int core_scsi3_pro_preempt(
struct se_cmd *cmd,
int type,
Expand Down
2 changes: 0 additions & 2 deletions trunk/drivers/target/target_core_pr.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,6 @@ extern void core_scsi3_free_pr_reg_from_nacl(struct se_device *,
struct se_node_acl *);
extern void core_scsi3_free_all_registrations(struct se_device *);
extern unsigned char *core_scsi3_pr_dump_type(int);
extern int core_scsi3_check_cdb_abort_and_preempt(struct list_head *,
struct se_cmd *);

extern int target_scsi3_emulate_pr_in(struct se_task *task);
extern int target_scsi3_emulate_pr_out(struct se_task *task);
Expand Down
15 changes: 15 additions & 0 deletions trunk/drivers/target/target_core_tmr.c
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,21 @@ static void core_tmr_handle_tas_abort(
transport_cmd_finish_abort(cmd, 0);
}

static int core_scsi3_check_cdb_abort_and_preempt(
struct list_head *preempt_and_abort_list,
struct se_cmd *cmd)
{
struct t10_pr_registration *pr_reg, *pr_reg_tmp;

list_for_each_entry_safe(pr_reg, pr_reg_tmp, preempt_and_abort_list,
pr_reg_abort_list) {
if (pr_reg->pr_res_key == cmd->pr_res_key)
return 0;
}

return 1;
}

static void core_tmr_drain_tmr_list(
struct se_device *dev,
struct se_tmr_req *tmr,
Expand Down

0 comments on commit ef482f4

Please sign in to comment.