On Wed, Jun 15, 2022 at 10:37:10AM +0800, Ming Lei wrote: > elevator can be tore down by sysfs switch interface or disk release, so > hold ->sysfs_lock before referring to q->elevator, then potential > use-after-free can be avoided. The subject probably should really talk about blk_mq_elv_switch_none as we generally already protect ->elevator with ->sysfs_lock. Otherwise looks good: Reviewed-by: Christoph Hellwig <hch@xxxxxx>