Skip to content

Commit

Permalink
block: use proper BLK_RW_ASYNC in blk_queue_start_tag()
Browse files Browse the repository at this point in the history
Makes it easier to read than the 0.

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
  • Loading branch information
Jens Axboe committed Oct 6, 2009
1 parent 316d315 commit 1b59dd5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion block/blk-tag.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 1b59dd5

Please sign in to comment.