mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-04 20:19:47 +08:00
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>
This commit is contained in:
parent
316d315bff
commit
1b59dd511b
@ -359,7 +359,7 @@ int blk_queue_start_tag(struct request_queue *q, struct request *rq)
|
|||||||
max_depth -= 2;
|
max_depth -= 2;
|
||||||
if (!max_depth)
|
if (!max_depth)
|
||||||
max_depth = 1;
|
max_depth = 1;
|
||||||
if (q->in_flight[0] > max_depth)
|
if (q->in_flight[BLK_RW_ASYNC] > max_depth)
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user