blk-wbt: pass in enum wbt_flags to get_rq_wait()

This is in preparation for having more write queues, in which
case we would have needed to pass in more information than just
a simple 'is_kswapd' boolean.

Reviewed-by: Darrick J. Wong <[email protected]>
Reviewed-by: Omar Sandoval <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
This commit is contained in:
Jens Axboe 2018-05-07 09:57:08 -06:00
commit 8bea609019
2 changed files with 18 additions and 11 deletions

View file

@ -19,7 +19,9 @@ enum wbt_flags {
};
enum {
WBT_NUM_RWQ = 2,
WBT_RWQ_BG = 0,
WBT_RWQ_KSWAPD,
WBT_NUM_RWQ,
};
/*