Re: Fix potential data loss and corruption due to Incorrect BIO Chain Handling
Stephen Zhang <[email protected]>
| Newsgroups | dev.linux.lists.gfs2,dev.linux.lists.ntfs3,dev.linux.lists.nvdimm,dev.linux.lists.virtualization,org.infradead.lists.linux-nvme,org.kernel.vger.linux-block,org.kernel.vger.linux-kernel,org.kernel.vger.linux-xfs |
|---|---|
| Message-ID | <CANubcdWh0zZpOqhBhWtKf0uN1+8Ec-RsHiSCQUFrqYXoux2-TA@mail.gmail.com> |
Christoph Hellwig <[email protected]> 于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