Fix potential data loss and corruption due to Incorrect BIO Chain Handling

Stephen Zhang starzhangzsd at gmail.com
Thu Nov 27 17:32:58 PST 2025


Christoph Hellwig <hch at infradead.org> 于2025年11月27日周四 22:46写道:
>
> On Thu, Nov 27, 2025 at 03:40:20PM +0800, Gao Xiang wrote:
> > For erofs, let me fix this directly to use bio_endio() instead
> > and go through the erofs (although it doesn't matter in practice
> > since no chain i/os for erofs and bio interfaces are unique and
> > friendly to operate bvecs for both block or non-block I/Os
> > compared to awkward bvec interfaces) and I will Cc you, Ming
> > and Stephen then.
>
> Thanks.  I'll ping Coly for bcache.
>

I would like the opportunity to fix this issue in bcache. From my analysis, it
seems the solution may be as straightforward as replacing the ->bi_end_io
assignment with a call to bio_endio().

Thanks,
shida



More information about the Linux-nvme mailing list