From: Christoph Hellwig <hch@infradead.org>
To: Yu Kuai <yukuai1@huaweicloud.com>
Cc: Christoph Hellwig <hch@infradead.org>,
Li Nan <linan666@huaweicloud.com>,
song@kernel.org, linux-raid@vger.kernel.org,
linux-kernel@vger.kernel.org, yi.zhang@huawei.com,
houtao1@huawei.com, yangerkun@huawei.com,
"yukuai (C)" <yukuai3@huawei.com>
Subject: Re: [PATCH v2] md: make md_flush_request() more readable
Date: Tue, 28 May 2024 23:09:49 -0700 [thread overview]
Message-ID: <ZlbGrdbnVRk_JYp5@infradead.org> (raw)
In-Reply-To: <dc394cf0-337d-a216-2fb2-8813e4c82575@huaweicloud.com>
On Wed, May 29, 2024 at 02:08:20PM +0800, Yu Kuai wrote:
>
> submit_bio_noacct
> if (op_is_flush(bio->bi_opf))
> if (!test_bit(QUEUE_FLAG_WC, &q->queue_flags))
> if (!bio_sectors(bio))
> bio_endio(bio);
>
> Or will the bi_size to be less than one sector?
bi_size is always aligned to the sector size except for passthrough
command. So the two versions are 100% equivalent. bio_sectors just
does a useless shift (which the compiler hopefully optimizes away)
next prev parent reply other threads:[~2024-05-29 6:09 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-28 20:31 [PATCH v2] md: make md_flush_request() more readable linan666
2024-05-28 13:23 ` Christoph Hellwig
2024-05-28 13:49 ` Li Nan
2024-05-29 5:44 ` Christoph Hellwig
2024-05-29 6:08 ` Yu Kuai
2024-05-29 6:09 ` Christoph Hellwig [this message]
2024-05-28 13:32 ` Yu Kuai
2024-06-10 20:53 ` Song Liu
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=ZlbGrdbnVRk_JYp5@infradead.org \
--to=hch@infradead.org \
--cc=houtao1@huawei.com \
--cc=linan666@huaweicloud.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-raid@vger.kernel.org \
--cc=song@kernel.org \
--cc=yangerkun@huawei.com \
--cc=yi.zhang@huawei.com \
--cc=yukuai1@huaweicloud.com \
--cc=yukuai3@huawei.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