mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
block: move flush initialization to blk_flush_init
These fields are always used with the flush request, so initialize them together. Reviewed-by: Christoph Hellwig <[email protected]> Signed-off-by: Ming Lei <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
This commit is contained in:
parent
f355265571
commit
3c09676c12
2 changed files with 4 additions and 3 deletions
|
|
@ -488,6 +488,10 @@ static int blk_mq_init_flush(struct request_queue *q)
|
|||
|
||||
int blk_init_flush(struct request_queue *q)
|
||||
{
|
||||
INIT_LIST_HEAD(&q->flush_queue[0]);
|
||||
INIT_LIST_HEAD(&q->flush_queue[1]);
|
||||
INIT_LIST_HEAD(&q->flush_data_in_flight);
|
||||
|
||||
if (q->mq_ops)
|
||||
return blk_mq_init_flush(q);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue