On Tue, 19 Dec 2023 09:28:33 +0800, Ming Lei wrote: > blkg_lookup() is called with either queue_lock or rcu read lock, so > use rcu_dereference_check(lockdep_is_held(&q->queue_lock)) for > retrieving 'blkg', which way models the check exactly for covering > queue lock or rcu read lock. > > Fix lockdep warning of "block/blk-cgroup.h:254 suspicious rcu_dereference_check() usage!" > from blkg_lookup(). > > [...] Applied, thanks! [1/1] blk-cgroup: fix rcu lockdep warning in blkg_lookup() commit: 393cd8ffd832f23eec3a105553eff622e8198918 Best regards, -- Jens Axboe