linux-nvme.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] Namespace attachment fixes/simplifications
@ 2015-10-01 23:14 Keith Busch
  2015-10-01 23:14 ` [PATCH 1/2] NVMe: Reference count open namespaces Keith Busch
  2015-10-01 23:14 ` [PATCH 2/2] NVMe: Simplify device resume on io queue failure Keith Busch
  0 siblings, 2 replies; 8+ messages in thread
From: Keith Busch @ 2015-10-01 23:14 UTC (permalink / raw)


This started off investigating a suggestion Christoph made on the awkward
way the driver removes disks if the controller can't handle IO after
attempting a resume from suspend.

It turns out that it has been a LONG time since the error path from
resume was tested. It definitely was broken, so this turned into a two
part series. I can split 2/2 into a two more if anyone thinks changes
are unrelated.

>From testing it became clear that it is not sufficient to reference count
only the controller anymore. Jens suggested a while back to reference
count the namespaces, but I didn't think there was a need since namespaces
couldn't be deleted while the controller had active references anyway. Now
that namespaces can be deleted independent of the controller, we really
do need a separate reference count.

Keith Busch (2):
  NVMe: Reference count open namespaces
  NVMe: Simplify device resume on io queue failure

 drivers/block/nvme-core.c |   80 ++++++++++++++++++---------------------------
 include/linux/nvme.h      |    2 +-
 2 files changed, 32 insertions(+), 50 deletions(-)

-- 
1.7.10.4

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2015-10-02 14:31 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-01 23:14 [PATCH 0/2] Namespace attachment fixes/simplifications Keith Busch
2015-10-01 23:14 ` [PATCH 1/2] NVMe: Reference count open namespaces Keith Busch
2015-10-02 12:59   ` Christoph Hellwig
2015-10-02 14:26     ` Keith Busch
2015-10-02 14:31       ` Christoph Hellwig
2015-10-01 23:14 ` [PATCH 2/2] NVMe: Simplify device resume on io queue failure Keith Busch
2015-10-02 13:03   ` Christoph Hellwig
2015-10-02 14:17     ` Keith Busch

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).