Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 273811
b: refs/heads/master
c: 5e08159
h: refs/heads/master
i:
  273809: a91eae9
  273807: f78d240
v: v3
  • Loading branch information
Tao Ma authored and Jens Axboe committed Oct 25, 2011
1 parent fc53738 commit f371116
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: 83157223defe3be490cfea048e83451b6f254216
refs/heads/master: 5e08159197b5b98a6648a172008de23f420e6c11
6 changes: 4 additions & 2 deletions trunk/block/blk-tag.c
Original file line number Diff line number Diff line change
Expand Up @@ -286,12 +286,14 @@ void blk_queue_end_tag(struct request_queue *q, struct request *rq)

BUG_ON(tag == -1);

if (unlikely(tag >= bqt->real_max_depth))
if (unlikely(tag >= bqt->max_depth)) {
/*
* This can happen after tag depth has been reduced.
* FIXME: how about a warning or info message here?
* But tag shouldn't be larger than real_max_depth.
*/
WARN_ON(tag >= bqt->real_max_depth);
return;
}

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

0 comments on commit f371116

Please sign in to comment.