linux-nvme.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: hch@lst.de (Christoph Hellwig)
Subject: [PATCH 8/9] nvme: remove dead controllers from a work item
Date: Fri, 23 Oct 2015 07:57:15 +0200	[thread overview]
Message-ID: <20151023055715.GC30808@lst.de> (raw)
In-Reply-To: <20151022203650.GF21840@localhost.localdomain>

On Thu, Oct 22, 2015@08:36:50PM +0000, Busch, Keith wrote:
> On Thu, Oct 22, 2015@08:12:40PM +0200, Christoph Hellwig wrote:
> > Oops - I'm queing it both on the system workqueue and nvme_workq, which
> > is clearly broken.  I'll fix it in the next resend.
> 
> Ha, let's just get rid of nvme_workq.

I thought about this a bit and I'm not sure it's the right thing -
as we reset controllers as part of error handling we'd really need a
WQ_MEM_RECLAIM workqueue here to be guranteed to make progress.  Although
hopefully not a single threaded one.

> I've got that plus a couple other fixups below. I noticed that earlier
> in the recent changes (18/18 from the previous series) we lost the
> "device_remove_file()" on the reset controller attribute.

Indeed.  For some reason I assumed we don't need the device_remove_file
when dropping the device and it didn't complain in my testing either.

> We also don't
> want to leave the nvme management handle available when we're trying to
> release it, so we need to delete the sysfs and char dev immediately on
> removal instead of after all references are released.
> 
> This fixes a WARN in fs/sysfs/group.c line 222.

I guess we need to sort out this life time model in more detail later
as the existing one you restored here looks a bit odd to me.  Nothing
I'll be able to finish this week, though.

> Here's all my "fixes", also pushed to my linux-nvme master:

Thanks.  So what's the plan for the patches in it?  They'll clash a bit
with the PR API and integrity branches due to all the moves.  But those
are also the reason why I'd really like to see it go into 4.4.  Do you
need help with a rebase?

  reply	other threads:[~2015-10-23  5:57 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-22 12:03 nvme abort and reset fixes Christoph Hellwig
2015-10-22 12:03 ` [PATCH 1/9] nvme: only add a controller to dev_list after it's been fully initialized Christoph Hellwig
2015-10-22 12:03 ` [PATCH 2/9] nvme: don't take the I/O queue q_lock in nvme_timeout Christoph Hellwig
2015-10-22 12:03 ` [PATCH 3/9] nvme: merge nvme_abort_req and nvme_timeout Christoph Hellwig
2015-10-22 12:03 ` [PATCH 4/9] nvme: do not restart the request timeout if we're resetting the controller Christoph Hellwig
2015-10-22 16:27   ` Busch, Keith
2015-10-22 16:30     ` Christoph Hellwig
2015-10-22 17:15       ` Busch, Keith
2015-10-22 18:17         ` Christoph Hellwig
2015-10-22 12:03 ` [PATCH 5/9] nvme: simplify resets Christoph Hellwig
2015-10-22 12:03 ` [PATCH 6/9] nvme: abort requests on the reqeueue list when shutting down a controller Christoph Hellwig
2015-10-22 14:44   ` Busch, Keith
2015-10-22 14:58     ` Christoph Hellwig
2015-10-22 15:16       ` Busch, Keith
2015-10-22 16:27         ` Christoph Hellwig
2015-10-22 12:03 ` [PATCH 7/9] nvme: merge probe_work and reset_work Christoph Hellwig
2015-10-22 12:03 ` [PATCH 8/9] nvme: remove dead controllers from a work item Christoph Hellwig
2015-10-22 18:10   ` Busch, Keith
2015-10-22 18:12     ` Christoph Hellwig
2015-10-22 20:36       ` Busch, Keith
2015-10-23  5:57         ` Christoph Hellwig [this message]
2015-10-23 14:51           ` Busch, Keith
2015-10-23 19:31             ` Busch, Keith
2015-10-22 12:03 ` [PATCH 9/9] nvme: switch abort_limit to an atomic_t 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=20151023055715.GC30808@lst.de \
    --to=hch@lst.de \
    /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;
as well as URLs for NNTP newsgroup(s).