[RFC PATCH v1 06/17] blk-cgroup: support non-blocking bio association

Christoph Hellwig hch at lst.de
Wed Jul 8 23:13:49 PDT 2026


On Sun, Jul 05, 2026 at 03:51:13AM +0800, Yu Kuai wrote:
> From: Yu Kuai <yukuai at fygo.io>
> 
> Allow bio association helpers to be called from non-blocking paths by
> returning whether the association succeeded and by taking a nowait argument.
> The normal callers pass nowait=false and keep the existing behavior of
> creating missing blkgs.
> 
> For nowait=true, the helper only succeeds when the needed blkg already
> exists.  This lets callers set or clone a bio's bdev without entering the
> sleepable missing-blkg creation path.

I think this is not needed once we kill nonblocking bio allocations,
but if not please have a clearly visible separate API for the
non-blocking version.




More information about the Linux-nvme mailing list