diff options
Diffstat (limited to 'block')
-rw-r--r-- | block/blk-tag.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/block/blk-tag.c b/block/blk-tag.c index ece65fc4c79b..e74d6d13838f 100644 --- a/block/blk-tag.c +++ b/block/blk-tag.c | |||
@@ -286,12 +286,14 @@ void blk_queue_end_tag(struct request_queue *q, struct request *rq) | |||
286 | 286 | ||
287 | BUG_ON(tag == -1); | 287 | BUG_ON(tag == -1); |
288 | 288 | ||
289 | if (unlikely(tag >= bqt->real_max_depth)) | 289 | if (unlikely(tag >= bqt->max_depth)) { |
290 | /* | 290 | /* |
291 | * This can happen after tag depth has been reduced. | 291 | * This can happen after tag depth has been reduced. |
292 | * FIXME: how about a warning or info message here? | 292 | * But tag shouldn't be larger than real_max_depth. |
293 | */ | 293 | */ |
294 | WARN_ON(tag >= bqt->real_max_depth); | ||
294 | return; | 295 | return; |
296 | } | ||
295 | 297 | ||
296 | list_del_init(&rq->queuelist); | 298 | list_del_init(&rq->queuelist); |
297 | rq->cmd_flags &= ~REQ_QUEUED; | 299 | rq->cmd_flags &= ~REQ_QUEUED; |