From: Keith Busch <kbusch@kernel.org>
To: Christoph Hellwig <hch@lst.de>
Cc: Keith Busch <kbusch@meta.com>,
martin.petersen@oracle.com, linux-block@vger.kernel.org,
axboe@devbig197.nha3.facebook.com
Subject: Re: [PATCH] blk-integrity: support bvec straddling block data
Date: Thu, 23 Oct 2025 08:39:29 -0600 [thread overview]
Message-ID: <aPo-IUIL8BTpe2BS@kbusch-mbp> (raw)
In-Reply-To: <20251023082201.GA369@lst.de>
On Thu, Oct 23, 2025 at 10:22:01AM +0200, Christoph Hellwig wrote:
> On Wed, Oct 22, 2025 at 04:52:31PM -0700, Keith Busch wrote:
> > + union {
> > + u64 crc64;
> > + __be16 t10pi;
> > + };
>
> Any good reason to keep the t10pi in be format except that is how
> the existing t10_pi_csum wrapper works?
I'm honestly confused how BLK_INTEGRITY_CSUM_IP works. It forces
coercion to __be16 type, but the csum calculation indicates it is not a
BE format. And it doesn't handle partials like how we have CSUM_CRC
working, so it seems broken on multiple fronts. But I don't have any IP
checksum capable drives to test with.
> > + if (iter->remaining)
> > + continue;
>
> I find the structure with the remaining continue here a bit confusing.
> I guess the code would benefit from being split into an out loop over
> the integrity intervals and an inner loop over the potentially smaller
> buffers to make this clear. Even more so with the skip case in the
> verify path.
We already do have an outer and inner loop, though iterating the data
buffers is currently the outer loop. I'll think about this a bit more to
find a more intuitive solution.
prev parent reply other threads:[~2025-10-23 14:39 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-10-22 23:52 [PATCH] blk-integrity: support bvec straddling block data Keith Busch
2025-10-23 1:32 ` Keith Busch
2025-10-23 8:22 ` Christoph Hellwig
2025-10-23 14:39 ` Keith Busch [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=aPo-IUIL8BTpe2BS@kbusch-mbp \
--to=kbusch@kernel.org \
--cc=axboe@devbig197.nha3.facebook.com \
--cc=hch@lst.de \
--cc=kbusch@meta.com \
--cc=linux-block@vger.kernel.org \
--cc=martin.petersen@oracle.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox