Re: [RFC PATCH v1 07/17] block: support non-blocking bio allocation with a bdev
"yu kuai" <[email protected]> Thu, 9 Jul 2026 18:02:32 +0800
| Newsgroups | org.kernel.vger.linux-bcache,dev.linux.lists.dm-devel,org.infradead.lists.linux-nvme,org.kernel.vger.cgroups,org.kernel.vger.linux-block |
|---|---|
| Message-ID | <[email protected]> |
Hi, =E5=9C=A8 2026/7/9 14:15, Christoph Hellwig =E5=86=99=E9=81=93: > Maybe we should just move the blkcg allocation back to bio_submit where > we know we can sleep? This sounds good, I already switch blkg allocation just before submit_bio() in some cases in this set. Just one question, for nowait case, is it correct that we still can't sleep during submit_bio()? If so, I still need to add nowait special case during blkg creation. Or I can just return -AGAIN if blkg lookup failed, this is much simplier. > --=20 Thanks, Kuai