nvmet: avoid duplicate qid in connect cmd
authorAmit Engel <amit.engel@dell.com>
Sun, 8 Aug 2021 15:06:15 +0000 (18:06 +0300)
committerChristoph Hellwig <hch@lst.de>
Mon, 16 Aug 2021 12:42:25 +0000 (14:42 +0200)
commitb71df12605cabab47d58bd926badaf4130280e4d
treef05ea4b71f2d1cddc3a09c52db95940f0920bcef
parente804d5abe2d74cfe23f5f83be580d1cdc9307111
nvmet: avoid duplicate qid in connect cmd

According to the NVMe specification, if the host sends a Connect command
specifying a queue id which has already been created, a status value of
NVME_SC_CMD_SEQ_ERROR is returned.

Signed-off-by: Amit Engel <amit.engel@dell.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/target/core.c
drivers/nvme/target/fabrics-cmd.c