On 4/18/25 10:06 PM, Ming Lei wrote: > Prepare for moving elv_register[unregister]_queue out of elevator_lock > & queue freezing, so we may have to call elv_unregister_queue() after > elevator ->exit() is called, then there is small window for user to > run into ->show()/store(), and user-after-free can be caused. > > Fail to show/store elevator sysfs attribute if elevator is dying by > adding one new flag of ELEVATOR_FLAG_DYNG, which is protected by > elevator ->sysfs_lock. > > Signed-off-by: Ming Lei <ming.lei@xxxxxxxxxx> Looks good to me: Reviewed-by: Nilay Shroff <nilay@xxxxxxxxxxxxx>