]> git.baikalelectronics.ru Git - kernel.git/commit
nvme-fc: don't bother to validate ioccsz and iorcsz
authorJames Smart <jsmart2021@gmail.com>
Fri, 17 Feb 2017 15:57:28 +0000 (07:57 -0800)
committerJens Axboe <axboe@fb.com>
Wed, 22 Feb 2017 20:34:00 +0000 (13:34 -0700)
commit80bb6d434c0b780035bf82baffaa4f3c1985b5ad
tree3b99804390a6b3f87701dae14626b26e34b37ab2
parent8453578d15f4c7d95efd2c36d94c7e4e3f69e7de
nvme-fc: don't bother to validate ioccsz and iorcsz

Discovery controllers don't set the values. They are in reserved
areas of the Identify Controller data structure.

Given the cmd completed, the minimal capsule sizes are supported,
so no need to check nqn to detect discovery controllers and
special case validations.

Signed-off-by: James Smart <james.smart@broadcom.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/nvme/host/fc.c