On Wed, Feb 26, 2025 at 06:09:58PM +0530, Nilay Shroff wrote: > The sysfs attribute nr_requests could be simultaneously updated from > elevator switch/update or nr_hw_queue update code path. The update to > nr_requests for each of those code paths runs holding q->elevator_lock. > So we should protect access to sysfs attribute nr_requests using q-> > elevator_lock instead of q->sysfs_lock. > > Reviewed-by: Hannes Reinecke <hare@xxxxxxx> > Signed-off-by: Nilay Shroff <nilay@xxxxxxxxxxxxx> Reviewed-by: Ming Lei <ming.lei@xxxxxxxxxx> Thanks, Ming