Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 359443
b: refs/heads/master
c: 50b7186
h: refs/heads/master
i:
  359441: a6b24d8
  359439: 8a3ee9d
v: v3
  • Loading branch information
Bhanu Prakash Gollapudi authored and James Bottomley committed Jan 29, 2013
1 parent 531b09e commit 290348e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 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: 33c7da0590d4e9e7420f8cf50722c4fe6932218f
refs/heads/master: 50b7186f64d525c1054d996f83e16c200f0b321c
4 changes: 3 additions & 1 deletion trunk/drivers/scsi/bnx2fc/bnx2fc_tgt.c
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,9 @@ static int bnx2fc_init_tgt(struct bnx2fc_rport *tgt,
tgt->rq_cons_idx = 0;
atomic_set(&tgt->num_active_ios, 0);

if (rdata->flags & FC_RP_FLAGS_RETRY) {
if (rdata->flags & FC_RP_FLAGS_RETRY &&
rdata->ids.roles & FC_RPORT_ROLE_FCP_TARGET &&
!(rdata->ids.roles & FC_RPORT_ROLE_FCP_INITIATOR)) {
tgt->dev_type = TYPE_TAPE;
tgt->io_timeout = 0; /* use default ULP timeout */
} else {
Expand Down

0 comments on commit 290348e

Please sign in to comment.