+78
−1
+10
−0
Loading
If the Extended LBA Formats Supported (ELBAS) is 1, we should set the LBA Format Extension Enable (LBAFEE) to 1 to get the Extended LBA formats. We already have a state NVME_CTRLR_STATE_SET_SUPPORTED_FEATURES and a function nvme_ctrlr_set_supported_features(). However, they are implemented synchronously. Synchronous implementation has potential deadlock bug when used in cluster SPDK target applications. Hence, we implement the host behavior support feature asynchronously. In future, other features may be re-implemented asynchronously too. feature_supported[SPDK_NVME_FEAT_HOST_BEHAVIOR_SUPPORT] will not be queried explicitly but set it to true if LBAFEE is set to 1 successfully. In this case, we can say that the Host Behavior Support Feature is actually enabled. Add unit test case for simple verification. Signed-off-by:Shuhei Matsumoto <smatsumoto@nvidia.com> Change-Id: I88e8367277c861e98bd3568713f19d307802be39 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/23620 Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by:
Aleksey Marchuk <alexeymar@nvidia.com> Reviewed-by:
Jim Harris <jim.harris@samsung.com> Community-CI: Mellanox Build Bot