Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 85899
b: refs/heads/master
c: 03513bc
h: refs/heads/master
i:
  85897: 195c4eb
  85895: 7a0efd6
v: v3
  • Loading branch information
Stefan Weinhuber authored and Martin Schwidefsky committed Feb 19, 2008
1 parent 93c340c commit fcddab5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 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: 11ab244c9faead91683a12e4cb10d26b279bb4aa
refs/heads/master: 03513bccad33667ed738cfd96dc5757e539e0bdb
12 changes: 6 additions & 6 deletions trunk/drivers/s390/block/dasd.c
Original file line number Diff line number Diff line change
Expand Up @@ -1149,12 +1149,14 @@ static void __dasd_device_process_final_queue(struct dasd_device *device,
{
struct list_head *l, *n;
struct dasd_ccw_req *cqr;
struct dasd_block *block;

list_for_each_safe(l, n, final_queue) {
cqr = list_entry(l, struct dasd_ccw_req, devlist);
list_del_init(&cqr->devlist);
if (cqr->block)
spin_lock_bh(&cqr->block->queue_lock);
block = cqr->block;
if (block)
spin_lock_bh(&block->queue_lock);
switch (cqr->status) {
case DASD_CQR_SUCCESS:
cqr->status = DASD_CQR_DONE;
Expand All @@ -1172,15 +1174,13 @@ static void __dasd_device_process_final_queue(struct dasd_device *device,
cqr, cqr->status);
BUG();
}
if (cqr->block)
spin_unlock_bh(&cqr->block->queue_lock);
if (cqr->callback != NULL)
(cqr->callback)(cqr, cqr->callback_data);
if (block)
spin_unlock_bh(&block->queue_lock);
}
}



/*
* Take a look at the first request on the ccw queue and check
* if it reached its expire time. If so, terminate the IO.
Expand Down

0 comments on commit fcddab5

Please sign in to comment.