Skip to content

nvmet: address controller teardown issues

James Smart linux-nvme 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2nvmet: fix ctlr ref countingdrivers/nvme/target/core.c drivers/nvme/target/fabrics-cmd.c drivers/nvme/target/nvmet.h+16 -22 replies
2/2nvmet: Fix fatal_err_work deadlockdrivers/nvme/target/core.c drivers/nvme/target/nvmet.h+19 -84 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] nvmet: address controller teardown issues

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(-)
Signature · 1 line
2.13.1