Skip to content

Commit 4ba8b3f

Browse files
guixinliu1995keithbusch
authored andcommitted
nvmet: remove cntlid_min and cntlid_max check in nvmet_alloc_ctrl
The cntlid_min and cntlid_max are checked in configfs, don't check again in nvmet_alloc_ctrl(). Signed-off-by: Guixin Liu <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]> Reviewed-by: Sagi Grimberg <[email protected]> Signed-off-by: Keith Busch <[email protected]>
1 parent 906dbc4 commit 4ba8b3f

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

drivers/nvme/target/core.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1425,9 +1425,6 @@ u16 nvmet_alloc_ctrl(const char *subsysnqn, const char *hostnqn,
14251425
if (!ctrl->sqs)
14261426
goto out_free_changed_ns_list;
14271427

1428-
if (subsys->cntlid_min > subsys->cntlid_max)
1429-
goto out_free_sqs;
1430-
14311428
ret = ida_alloc_range(&cntlid_ida,
14321429
subsys->cntlid_min, subsys->cntlid_max,
14331430
GFP_KERNEL);

0 commit comments

Comments
 (0)