Loading lib/nvmf/session.c +10 −0 Original line number Diff line number Diff line Loading @@ -218,6 +218,16 @@ spdk_nvmf_session_connect(struct spdk_nvmf_conn *conn, return; } /* * SQSIZE is a 0-based value, so it must be at least 1 (minimum queue depth is 2) and * strictly less than max_queue_depth. */ if (cmd->sqsize == 0 || cmd->sqsize >= g_nvmf_tgt.max_queue_depth) { SPDK_ERRLOG("Invalid SQSIZE %u (min 1, max %u)\n", cmd->sqsize, g_nvmf_tgt.max_queue_depth - 1); INVALID_CONNECT_CMD(sqsize); return; } conn->sq_head_max = cmd->sqsize; if (cmd->qid == 0) { Loading Loading
lib/nvmf/session.c +10 −0 Original line number Diff line number Diff line Loading @@ -218,6 +218,16 @@ spdk_nvmf_session_connect(struct spdk_nvmf_conn *conn, return; } /* * SQSIZE is a 0-based value, so it must be at least 1 (minimum queue depth is 2) and * strictly less than max_queue_depth. */ if (cmd->sqsize == 0 || cmd->sqsize >= g_nvmf_tgt.max_queue_depth) { SPDK_ERRLOG("Invalid SQSIZE %u (min 1, max %u)\n", cmd->sqsize, g_nvmf_tgt.max_queue_depth - 1); INVALID_CONNECT_CMD(sqsize); return; } conn->sq_head_max = cmd->sqsize; if (cmd->qid == 0) { Loading