summaryrefslogtreecommitdiffstats
path: root/block
diff options
context:
space:
mode:
authorJens Axboe <jens.axboe@oracle.com>2009-10-06 20:19:02 +0200
committerJens Axboe <jens.axboe@oracle.com>2009-10-06 20:19:02 +0200
commit1b59dd511b9a36d4be3c01d7c7024aeec36dc651 (patch)
tree295691e2bb0c0baaea8de2db4c7c38039053f384 /block
parent316d315bffa4026f28085f6b24ebcebede370ac7 (diff)
downloadlinux-stable-1b59dd511b9a36d4be3c01d7c7024aeec36dc651.tar.gz
linux-stable-1b59dd511b9a36d4be3c01d7c7024aeec36dc651.tar.bz2
linux-stable-1b59dd511b9a36d4be3c01d7c7024aeec36dc651.zip
block: use proper BLK_RW_ASYNC in blk_queue_start_tag()
Makes it easier to read than the 0. Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'block')
-rw-r--r--block/blk-tag.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/block/blk-tag.c b/block/blk-tag.c
index 2e5cfeb59333..6b0f52c20964 100644
--- a/block/blk-tag.c
+++ b/block/blk-tag.c
@@ -359,7 +359,7 @@ int blk_queue_start_tag(struct request_queue *q, struct request *rq)
max_depth -= 2;
if (!max_depth)
max_depth = 1;
- if (q->in_flight[0] > max_depth)
+ if (q->in_flight[BLK_RW_ASYNC] > max_depth)
return 1;
}