block: warn if tag is greater than real_max_depth.
authorTao Ma <boyu.mt@taobao.com>
Tue, 25 Oct 2011 08:20:05 +0000 (10:20 +0200)
committerJens Axboe <axboe@kernel.dk>
Tue, 25 Oct 2011 08:20:05 +0000 (10:20 +0200)
commit5e08159197b5b98a6648a172008de23f420e6c11
tree7d9d9b275f8b62fa5069012df293e0af364bce86
parent83157223defe3be490cfea048e83451b6f254216
block: warn if tag is greater than real_max_depth.

In case tag depth is reduced, it is max_depth not real_max_depth.
So we should allow a request with tag >= max_depth, but for a
tag >= real_max_depth, there really should be some problem.

Signed-off-by: Tao Ma <boyu.mt@taobao.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-tag.c