Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 117944
b: refs/heads/master
c: 7a4a1cc
h: refs/heads/master
v: v3
  • Loading branch information
Frank Munzert authored and Martin Schwidefsky committed Oct 28, 2008
1 parent 369ba17 commit a66360d
Show file tree
Hide file tree
Showing 2 changed files with 5 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: da5aae7036692fa8d03da1b705c76fd750ed9e38
refs/heads/master: 7a4a1ccd44c85c7d92b20a361e3854431c6935e0
6 changes: 4 additions & 2 deletions trunk/drivers/s390/char/tape_block.c
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ tapeblock_trigger_requeue(struct tape_device *device)
static void
tapeblock_end_request(struct request *req, int error)
{
if (__blk_end_request(req, error, blk_rq_bytes(req)))
if (blk_end_request(req, error, blk_rq_bytes(req)))
BUG();
}

Expand Down Expand Up @@ -166,7 +166,7 @@ tapeblock_requeue(struct work_struct *work) {
nr_queued++;
spin_unlock(get_ccwdev_lock(device->cdev));

spin_lock(&device->blk_data.request_queue_lock);
spin_lock_irq(&device->blk_data.request_queue_lock);
while (
!blk_queue_plugged(queue) &&
elv_next_request(queue) &&
Expand All @@ -176,7 +176,9 @@ tapeblock_requeue(struct work_struct *work) {
if (rq_data_dir(req) == WRITE) {
DBF_EVENT(1, "TBLOCK: Rejecting write request\n");
blkdev_dequeue_request(req);
spin_unlock_irq(&device->blk_data.request_queue_lock);
tapeblock_end_request(req, -EIO);
spin_lock_irq(&device->blk_data.request_queue_lock);
continue;
}
blkdev_dequeue_request(req);
Expand Down

0 comments on commit a66360d

Please sign in to comment.