diff options
| author | 2025-04-24 15:13:49 +1000 | |
|---|---|---|
| committer | 2025-05-20 05:34:25 +0200 | |
| commit | b3649f829a842f4f09a0912781936fc2f2d02253 (patch) | |
| tree | 1ae0deed9f426b96d445250a7f098b51b352312c /scripts/Makefile.thinlto | |
| parent | nvmet-auth: authenticate on admin queue only (diff) | |
nvmet: add a helper function for cqid checking
This patch adds a new helper function nvmet_check_io_cqid(). It is to be
used when parsing host commands for IO CQ creation/deletion and IO SQ
creation to ensure that the specified IO completion queue identifier
(CQID) is not 0 (Admin queue ID). This is a check that already occurs in
the nvmet_execute_x() functions prior to nvmet_check_cqid.
With the addition of this helper function, the CQ ID checks in the
nvmet_execute_x() function can be removed, and instead simply call
nvmet_check_io_cqid() in place of nvmet_check_cqid().
Signed-off-by: Wilfred Mallawa <wilfred.mallawa@wdc.com>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Reviewed-by: Damien Le Moal <dlemoal@kernel.org>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
