# Re: iomap: writeback ioend/bio allocation deadlock risk

- From: Ming Lei \<hidden\>
- Date: 2021-05-21 08:55:02 
- List: linux-block
- Page: https://ratatoskr.run/linux-block/2021/05/206382
- Thread: https://ratatoskr.run/linux-block/2021/05/206348/t.md

```text
On Fri, May 21, 2021 at 10:36:35AM +0200, Christoph Hellwig wrote:
> On Fri, May 21, 2021 at 04:35:03PM +0800, Ming Lei wrote:
> > Just wondering why the ioend isn't submitted out after it becomes full?
> 
> block layer plugging?  Although failing bio allocations will kick that,
> so that is not a deadlock risk.

These ioends are just added to one list stored on local stack variable(submit_list),
how can block layer plugging observe & submit them out?

Chained bios have been submitted already, but all can't be completed/freed
until the whole ioend is done, that submission won't make forward progress.


Thanks,
Ming

```
