All of lore.kernel.org
 help / color / mirror / Atom feed
From: Keith Busch <keith.busch@intel.com>
To: Christoph Hellwig <hch@lst.de>
Cc: Sagi Grimberg <sagi@grimberg.me>,
	linux-nvme@lists.infradead.org, linux-block@vger.kernel.org,
	Jens Axboe <axboe@kernel.dk>
Subject: Re: [PATCH 2/3] nvme/pci: Remove cq_vector check in IO path
Date: Fri, 29 Dec 2017 08:39:50 -0700	[thread overview]
Message-ID: <20171229153950.GB16407@localhost.localdomain> (raw)
In-Reply-To: <20171229094814.GC24043@lst.de>

On Fri, Dec 29, 2017 at 10:48:14AM +0100, Christoph Hellwig wrote:
> On Wed, Dec 27, 2017 at 11:01:48PM +0200, Sagi Grimberg wrote:
> >
> >> Awesome!
> >>
> >> Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
> >
> > Wait, aren't we unquiesce queues also in nvme_dev_disable?
> >
> > Doesn't that rely that the queues are suspended and queue_rq
> > will fail there?
> 
> We don't seem to have any other check as far as I can tell.

Ok, we currently do need this check in the submission side to flush
entered requests on invalidated hw contexts. We didn't have a way to
back out entered requests before, so that's why this request killing
check still exists. We can steal bio's to back out requests now, so I
think we should do that instead of failing them.

I'll do rework the series a bit to make that possible, plus add the
removal of the submission side nvme_process_cq, and resend.

WARNING: multiple messages have this Message-ID (diff)
From: keith.busch@intel.com (Keith Busch)
Subject: [PATCH 2/3] nvme/pci: Remove cq_vector check in IO path
Date: Fri, 29 Dec 2017 08:39:50 -0700	[thread overview]
Message-ID: <20171229153950.GB16407@localhost.localdomain> (raw)
In-Reply-To: <20171229094814.GC24043@lst.de>

On Fri, Dec 29, 2017@10:48:14AM +0100, Christoph Hellwig wrote:
> On Wed, Dec 27, 2017@11:01:48PM +0200, Sagi Grimberg wrote:
> >
> >> Awesome!
> >>
> >> Reviewed-by: Sagi Grimberg <sagi at grimberg.me>
> >
> > Wait, aren't we unquiesce queues also in nvme_dev_disable?
> >
> > Doesn't that rely that the queues are suspended and queue_rq
> > will fail there?
> 
> We don't seem to have any other check as far as I can tell.

Ok, we currently do need this check in the submission side to flush
entered requests on invalidated hw contexts. We didn't have a way to
back out entered requests before, so that's why this request killing
check still exists. We can steal bio's to back out requests now, so I
think we should do that instead of failing them.

I'll do rework the series a bit to make that possible, plus add the
removal of the submission side nvme_process_cq, and resend.

  reply	other threads:[~2017-12-29 15:39 UTC|newest]

Thread overview: 68+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-12-21 20:46 [PATCH 0/3] Performance enhancements Keith Busch
2017-12-21 20:46 ` Keith Busch
2017-12-21 20:46 ` [PATCH 1/3] nvme/pci: Start request after doorbell ring Keith Busch
2017-12-21 20:46   ` Keith Busch
2017-12-21 20:49   ` Jens Axboe
2017-12-21 20:49     ` Jens Axboe
2017-12-21 20:53     ` Jens Axboe
2017-12-21 20:53       ` Jens Axboe
2017-12-21 21:02       ` Keith Busch
2017-12-21 21:02         ` Keith Busch
2017-12-21 21:01         ` Jens Axboe
2017-12-21 21:01           ` Jens Axboe
2018-01-03 20:21           ` Keith Busch
2018-01-03 20:21             ` Keith Busch
2018-01-23  0:16             ` Keith Busch
2018-01-23  0:16               ` Keith Busch
2017-12-25 10:12         ` Sagi Grimberg
2017-12-25 10:12           ` Sagi Grimberg
2017-12-29  9:44           ` Christoph Hellwig
2017-12-29  9:44             ` Christoph Hellwig
2017-12-25 10:11   ` Sagi Grimberg
2017-12-25 10:11     ` Sagi Grimberg
2017-12-26 20:35     ` Keith Busch
2017-12-26 20:35       ` Keith Busch
2017-12-27  9:02       ` Sagi Grimberg
2017-12-27  9:02         ` Sagi Grimberg
2017-12-29  9:44   ` Christoph Hellwig
2017-12-29  9:44     ` Christoph Hellwig
2017-12-21 20:46 ` [PATCH 2/3] nvme/pci: Remove cq_vector check in IO path Keith Busch
2017-12-21 20:46   ` Keith Busch
2017-12-21 20:54   ` Jens Axboe
2017-12-21 20:54     ` Jens Axboe
2017-12-25 10:10   ` Sagi Grimberg
2017-12-25 10:10     ` Sagi Grimberg
2017-12-27 21:01     ` Sagi Grimberg
2017-12-27 21:01       ` Sagi Grimberg
2017-12-29  9:48       ` Christoph Hellwig
2017-12-29  9:48         ` Christoph Hellwig
2017-12-29 15:39         ` Keith Busch [this message]
2017-12-29 15:39           ` Keith Busch
2017-12-31 12:30           ` Sagi Grimberg
2017-12-31 12:30             ` Sagi Grimberg
2018-01-02 16:50             ` Keith Busch
2018-01-02 16:50               ` Keith Busch
2017-12-21 20:46 ` [PATCH 3/3] block: Polling completion performance optimization Keith Busch
2017-12-21 20:46   ` Keith Busch
2017-12-21 20:56   ` Scott Bauer
2017-12-21 20:56     ` Scott Bauer
2017-12-21 21:00     ` Jens Axboe
2017-12-21 21:00       ` Jens Axboe
2017-12-21 21:34       ` Keith Busch
2017-12-21 21:34         ` Keith Busch
2017-12-21 22:17         ` Jens Axboe
2017-12-21 22:17           ` Jens Axboe
2017-12-21 23:10           ` Keith Busch
2017-12-21 23:10             ` Keith Busch
2017-12-22 15:40             ` Jens Axboe
2017-12-22 15:40               ` Jens Axboe
2017-12-29  9:50         ` Christoph Hellwig
2017-12-29  9:50           ` Christoph Hellwig
2017-12-29 15:51           ` Keith Busch
2017-12-29 15:51             ` Keith Busch
2017-12-31 12:48           ` Sagi Grimberg
2017-12-31 12:48             ` Sagi Grimberg
2017-12-21 20:57   ` Jens Axboe
2017-12-21 20:57     ` Jens Axboe
2017-12-29  9:51   ` Christoph Hellwig
2017-12-29  9:51     ` Christoph Hellwig

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=20171229153950.GB16407@localhost.localdomain \
    --to=keith.busch@intel.com \
    --cc=axboe@kernel.dk \
    --cc=hch@lst.de \
    --cc=linux-block@vger.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.