Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 154802
b: refs/heads/master
c: 39562e7
h: refs/heads/master
v: v3
  • Loading branch information
Christof Schmitt authored and James Bottomley committed Jun 26, 2009
1 parent b55b52c commit 15b0b03
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 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: d3a263a8168f78874254ea9da9595cfb0f3e96d7
refs/heads/master: 39562e783928e3ea9ee2cbce99a756ab48d3c06a
5 changes: 3 additions & 2 deletions trunk/drivers/scsi/scsi_transport_fc.c
Original file line number Diff line number Diff line change
Expand Up @@ -3670,21 +3670,22 @@ static void
fc_bsg_goose_queue(struct fc_rport *rport)
{
int flagset;
unsigned long flags;

if (!rport->rqst_q)
return;

get_device(&rport->dev);

spin_lock(rport->rqst_q->queue_lock);
spin_lock_irqsave(rport->rqst_q->queue_lock, flags);
flagset = test_bit(QUEUE_FLAG_REENTER, &rport->rqst_q->queue_flags) &&
!test_bit(QUEUE_FLAG_REENTER, &rport->rqst_q->queue_flags);
if (flagset)
queue_flag_set(QUEUE_FLAG_REENTER, rport->rqst_q);
__blk_run_queue(rport->rqst_q);
if (flagset)
queue_flag_clear(QUEUE_FLAG_REENTER, rport->rqst_q);
spin_unlock(rport->rqst_q->queue_lock);
spin_unlock_irqrestore(rport->rqst_q->queue_lock, flags);

put_device(&rport->dev);
}
Expand Down

0 comments on commit 15b0b03

Please sign in to comment.