[PATCH 0/2] Make nvmet_init_cap dependent on passthru controller

From: Adam Manzanares
Date: Thu Aug 26 2021 - 17:15:55 EST


nvme_init_cap unconditionally sets support for one or more command sets. When
using a passthru controller this may cause a conventional namespace to be
ignored when checking the namespace identification descriptors which must
include the command set identifier when the cap is set to support one or more
command sets. Since the namespace identification descriptors come from the
passthru controller they may not include the command set identifier causing the
namespace to be ignored.

Adam Manzanares (2):
nvme: move nvme_multi_css into nvme.h
nvmet: use passthru cntrl in nvmet_init_cap

drivers/nvme/host/core.c | 5 -----
drivers/nvme/host/nvme.h | 5 +++++
drivers/nvme/target/core.c | 9 ++++++---
3 files changed, 11 insertions(+), 8 deletions(-)

--
2.25.1