On Fri, 16 Jun 2023 21:23:54 +0800, Ming Lei wrote: > After grabbing q->sysfs_lock, q->elevator may become NULL because of > elevator switch. > > Fix the NULL dereference on q->elevator by checking it with lock. > > Applied, thanks! [1/1] blk-mq: fix NULL dereference on q->elevator in blk_mq_elv_switch_none commit: 245165658e1c9f95c0fecfe02b9b1ebd30a1198a Best regards, -- Jens Axboe