linux-nvme.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] nvmet: address controller teardown issues
@ 2017-09-28 15:35 James Smart
  2017-09-28 15:35 ` [PATCH 1/2] nvmet: fix ctlr ref counting James Smart
  2017-09-28 15:35 ` [PATCH 2/2] nvmet: Fix fatal_err_work deadlock James Smart
  0 siblings, 2 replies; 9+ messages in thread
From: James Smart @ 2017-09-28 15:35 UTC (permalink / raw)


Controller deletes were showing a nasty stack trace with
flush_work hanging. Looking at the issue, it became clear the
ref counting for nvmet was allowing the controller to be freed
too early causing use after free errors.

First patch addresses ctrl ref counting
second patch addresses flush_work hang

James Smart (2):
  nvmet: fix ctlr ref counting
  nvmet: Fix fatal_err_work deadlock

 drivers/nvme/target/core.c        | 42 +++++++++++++++++++++++++++++----------
 drivers/nvme/target/fabrics-cmd.c |  1 +
 drivers/nvme/target/nvmet.h       |  2 ++
 3 files changed, 35 insertions(+), 10 deletions(-)

-- 
2.13.1

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

end of thread, other threads:[~2017-10-19  8:40 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-09-28 15:35 [PATCH 0/2] nvmet: address controller teardown issues James Smart
2017-09-28 15:35 ` [PATCH 1/2] nvmet: fix ctlr ref counting James Smart
2017-09-30 18:00   ` Sagi Grimberg
2017-09-30 19:04     ` James Smart
2017-09-28 15:35 ` [PATCH 2/2] nvmet: Fix fatal_err_work deadlock James Smart
2017-09-30 18:09   ` Sagi Grimberg
2017-09-30 19:33     ` James Smart
2017-10-02 22:45       ` Sagi Grimberg
2017-10-19  8:40   ` Johannes Thumshirn

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