Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 277032
b: refs/heads/master
c: f2b20d4
h: refs/heads/master
v: v3
  • Loading branch information
Dan Williams authored and Jens Axboe committed Dec 29, 2011
1 parent 823290f commit 6876ce1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 12 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: 609f6ea1c9cdfe0c43a927e13205a57d0c266d5a
refs/heads/master: f2b20d436534f22ccc3f5ad172499fcb013bb315
13 changes: 2 additions & 11 deletions trunk/block/blk-tag.c
Original file line number Diff line number Diff line change
Expand Up @@ -282,18 +282,9 @@ EXPORT_SYMBOL(blk_queue_resize_tags);
void blk_queue_end_tag(struct request_queue *q, struct request *rq)
{
struct blk_queue_tag *bqt = q->queue_tags;
int tag = rq->tag;
unsigned tag = rq->tag; /* negative tags invalid */

BUG_ON(tag == -1);

if (unlikely(tag >= bqt->max_depth)) {
/*
* This can happen after tag depth has been reduced.
* But tag shouldn't be larger than real_max_depth.
*/
WARN_ON(tag >= bqt->real_max_depth);
return;
}
BUG_ON(tag >= bqt->real_max_depth);

list_del_init(&rq->queuelist);
rq->cmd_flags &= ~REQ_QUEUED;
Expand Down

0 comments on commit 6876ce1

Please sign in to comment.