From: Ming Lei <ming.lei@redhat.com>
To: John Garry <john.garry@huawei.com>
Cc: Jens Axboe <axboe@kernel.dk>,
linux-block@vger.kernel.org,
Christoph Hellwig <hch@infradead.org>
Subject: Re: [PATCH] blk-mq: centralise related handling into blk_mq_get_driver_tag
Date: Tue, 7 Jul 2020 15:16:52 +0800 [thread overview]
Message-ID: <20200707071652.GA3269442@T590> (raw)
In-Reply-To: <841c8170-f082-814a-70cc-b0e3e8b5be54@huawei.com>
On Tue, Jul 07, 2020 at 07:37:41AM +0100, John Garry wrote:
> On 06/07/2020 15:41, Ming Lei wrote:
> > - hctx = flush_rq->mq_hctx;
> > if (!q->elevator) {
>
> Is there a specific reason we do:
>
> if (!a)
> do x
> else
> do y
>
> as opposed to:
>
> if (a)
> do y
> else
> do x
>
> Do people find this easier to read or more obvious? Just wondering.
If you like the style, please go ahead to switch to this way.
The check on 'q->elevator' isn't added by this patch, and it won't be
this patch's purpose at all.
Thanks,
Ming
next prev parent reply other threads:[~2020-07-07 7:17 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-07-06 14:41 [PATCH] blk-mq: centralise related handling into blk_mq_get_driver_tag Ming Lei
2020-07-07 6:37 ` John Garry
2020-07-07 6:58 ` Christoph Hellwig
2020-07-07 7:16 ` Ming Lei [this message]
2020-07-08 14:07 ` John Garry
2020-07-08 22:06 ` Ming Lei
2020-07-08 22:15 ` John Garry
2020-07-08 22:07 ` Jens Axboe
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=20200707071652.GA3269442@T590 \
--to=ming.lei@redhat.com \
--cc=axboe@kernel.dk \
--cc=hch@infradead.org \
--cc=john.garry@huawei.com \
--cc=linux-block@vger.kernel.org \
/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