On Wed, Mar 23, 2022 at 12:12:38AM +0800, Ming Lei wrote: > blkg_free() may be called in atomic context, either spin lock is held, > or run in rcu callback. Meantime either request queue's release handler > or ->pd_free_fn can sleep. > > Fix the issue by scheduling work function for freeing blkcg_gq instance. > > Cc: Tejun Heo <tj@xxxxxxxxxx> > Fixes: 0a9a25ca7843 ("block: let blkcg_gq grab request queue's refcnt") > Reported-by: Christoph Hellwig <hch@xxxxxx> > Signed-off-by: Ming Lei <ming.lei@xxxxxxxxxx> Do you have an example of this being a problem? Thanks. -- tejun