public inbox for linux-nvme@lists.infradead.org
 help / color / mirror / Atom feed
From: Christoph Hellwig <hch@lst.de>
To: Jens Axboe <axboe@kernel.dk>
Cc: Irvin Cote <irvincoteg@gmail.com>,
	hch@lst.de, kbusch@kernel.org, sagi@grimberg.me,
	linux-nvme@lists.infradead.org
Subject: Re: [PATCH 1/2] nvme-core: remove redundant condition in nvme_ns_head_multipath
Date: Sat, 20 May 2023 06:24:13 +0200	[thread overview]
Message-ID: <20230520042413.GB31780@lst.de> (raw)
In-Reply-To: <147b8893-10cd-27dd-eb48-3a5128de8f5d@kernel.dk>

On Thu, May 18, 2023 at 08:12:23PM -0600, Jens Axboe wrote:
> >  static inline bool nvme_ns_head_multipath(struct nvme_ns_head *head)
> >  {
> > -	return IS_ENABLED(CONFIG_NVME_MULTIPATH) && head->disk;
> > +	return head->disk;
> >  }
> 
> Might not matter for this case, but this changes something that'd
> compile away for !CONFIG_NVME_MULTIPATH to now needing to read
> disk->head instead. That doesn't seem like a good change.

Exactly.  That's the reason why this helper and check exist.


  reply	other threads:[~2023-05-20  4:24 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-05-18 22:10 [PATCH 0/2] minor changes regarding multipath-head assertion Irvin Cote
2023-05-18 22:10 ` [PATCH 1/2] nvme-core: remove redundant condition in nvme_ns_head_multipath Irvin Cote
2023-05-19  2:12   ` Jens Axboe
2023-05-20  4:24     ` Christoph Hellwig [this message]
2023-05-18 22:10 ` [PATCH 2/2] nvme-core: use nvme_ns_head_multipath instead of ns->head->disk Irvin Cote
2023-05-20  4:24   ` Christoph Hellwig
2023-06-12 17:59   ` Keith Busch

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=20230520042413.GB31780@lst.de \
    --to=hch@lst.de \
    --cc=axboe@kernel.dk \
    --cc=irvincoteg@gmail.com \
    --cc=kbusch@kernel.org \
    --cc=linux-nvme@lists.infradead.org \
    --cc=sagi@grimberg.me \
    /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