> > Would it be possible to use the .get_budget / .put_budget callbacks for > > obtaining / releasing a "permit" object? I'm asking this because it was > > really tricky to get the .get_budget / .put_budget calls right in the > > block layer core. See also commit 0bca799b9280 ("blk-mq: order getting > > budget and driver tag") # v4.17. > > Will check if we can use .get_budget/put_budget call back. I checked get_budget/put_budget only has single parameter blk_mq_hw_ctx, so it's not possible save the permit for later to release/put back the permit. Thanks!