Re: [PATCH for-6.4/block] block/rq_qos: protect rq_qos apis with a new lock

From: Jens Axboe
Date: Tue May 23 2023 - 13:14:13 EST



On Fri, 14 Apr 2023 16:40:08 +0800, Yu Kuai wrote:
> commit 50e34d78815e ("block: disable the elevator int del_gendisk")
> move rq_qos_exit() from disk_release() to del_gendisk(), this will
> introduce some problems:
>
> 1) If rq_qos_add() is triggered by enabling iocost/iolatency through
> cgroupfs, then it can concurrent with del_gendisk(), it's not safe to
> write 'q->rq_qos' concurrently.
>
> [...]

Applied, thanks!

[1/1] block/rq_qos: protect rq_qos apis with a new lock
commit: a13bd91be22318768d55470cbc0b0f4488ef9edf

Best regards,
--
Jens Axboe