[PATCH 0/2] nvmet: fix subtle race in I/O processing and ns configuration
From: Nilay Shroff
Date: Wed Sep 16 2026 - 11:28:52 EST
Hi,
This series addresses two race conditions in the nvmet core code that
handles I/O submission and namespace configuration.
The first patch addresses a race where target namespace attributes
could be changed while I/O is in progress. The second patch addresses
a subtle race that could allow I/O to be admitted even after the
percpu reference count has been killed or marked dead.
As usual, feedback, comments, and suggestions are most welcome!
Thanks!
Nilay Shroff (2):
nvmet: defer setting ns->enabled to false in nvmet_ns_disable()
nvmet: don't allow I/O admission after percpu ns reference is killed
drivers/nvme/target/core.c | 23 +++++++++++++++--------
1 file changed, 15 insertions(+), 8 deletions(-)
--
2.53.0