Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 119498
b: refs/heads/master
c: 2642b11
h: refs/heads/master
v: v3
  • Loading branch information
Stefan Richter committed Nov 29, 2008
1 parent d42c7e7 commit 74452d5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 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: e47c1feb17e61ef4e2f245c0af0c5a8e2a7798b2
refs/heads/master: 2642b11295ebcc94843045933061bfbb263fce7f
9 changes: 5 additions & 4 deletions trunk/drivers/ieee1394/sbp2.c
Original file line number Diff line number Diff line change
Expand Up @@ -895,12 +895,13 @@ static void sbp2_host_reset(struct hpsb_host *host)
return;

read_lock_irqsave(&sbp2_hi_logical_units_lock, flags);

list_for_each_entry(lu, &hi->logical_units, lu_list)
if (likely(atomic_read(&lu->state) !=
SBP2LU_STATE_IN_SHUTDOWN)) {
atomic_set(&lu->state, SBP2LU_STATE_IN_RESET);
if (atomic_cmpxchg(&lu->state,
SBP2LU_STATE_RUNNING, SBP2LU_STATE_IN_RESET)
== SBP2LU_STATE_RUNNING)
scsi_block_requests(lu->shost);
}

read_unlock_irqrestore(&sbp2_hi_logical_units_lock, flags);
}

Expand Down

0 comments on commit 74452d5

Please sign in to comment.