linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Better read bio error granularity?
@ 2022-03-13 10:24 Qu Wenruo
  2022-03-13 10:55 ` Matthew Wilcox
  0 siblings, 1 reply; 4+ messages in thread
From: Qu Wenruo @ 2022-03-13 10:24 UTC (permalink / raw)
  To: Linux FS Devel, linux-btrfs@vger.kernel.org, dm-devel@redhat.com

Hi,

Since if any of the split bio got an error, the whole bio will have
bi_status set to some error number.

This is completely fine for write bio, but I'm wondering can we get a
better granularity by introducing per-bvec bi_status or using page status?


One situation is, for fs like btrfs or dm device like dm-verify, if a
large bio is submitted, say a 128K one, and one of the page failed to
pass checksum/hmac verification.

Then the whole 128K will be marked error, while in fact the rest 124K
are completely fine.


Can this be solved by something like per-vec bi_status, or using page
error status to indicate where exactly the error is?

Or is such usage case too niche (only makes sense for read, only makes
sense for fs with verification)?

Thanks,
Qu

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-03-13 17:44 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-03-13 10:24 Better read bio error granularity? Qu Wenruo
2022-03-13 10:55 ` Matthew Wilcox
2022-03-13 11:03   ` Qu Wenruo
2022-03-13 17:44     ` Matthew Wilcox

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).