From: Yu Kuai <yukuai3@xxxxxxxxxx> This patchset is a new version, use a different solution suggested by Tejun in [1]. [1] https://lore.kernel.org/all/Y6DP3aOSad8+D1yY@xxxxxxxxxxxxxxx/ Yu Kuai (4): block/rq_qos: move implementions of init/exit rq-qos apis to blk-rq-qos.c block/rq_qos: factor out a helper to add rq_qos and activate policy block/rq_qos: use a global mutex to protect rq_qos apis block/rq_qos: fail rq_qos_add() after rq_qos_exit() block/blk-iocost.c | 14 +---- block/blk-iolatency.c | 7 +-- block/blk-rq-qos.c | 118 ++++++++++++++++++++++++++++++++++++++++-- block/blk-rq-qos.h | 69 +++--------------------- 4 files changed, 125 insertions(+), 83 deletions(-) -- 2.31.1