]> git.baikalelectronics.ru Git - kernel.git/commit
nvme/scsi: don't rely on BLK_MAX_CDB
authorChristoph Hellwig <hch@lst.de>
Sat, 28 Jan 2017 08:32:49 +0000 (09:32 +0100)
committerJens Axboe <axboe@fb.com>
Mon, 30 Jan 2017 15:33:51 +0000 (08:33 -0700)
commitcb56d93ebe7c94e162d69e1fcd5d8357ca408244
treebf86442027b711fa51a2c95665965dfc99c01be5
parent8669eb9eadaeb9ea9b46f988c1dca0801eac3c28
nvme/scsi: don't rely on BLK_MAX_CDB

The NVMe SCSI emulation doesn't use BLOCK_PC requests, so BLK_MAX_CDB
doesn't have a meaning for it.  Instead opencode the value of 16
and refactor the code a bit so that related checks are next to each
other and we only need to use the value in one place.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/nvme/host/scsi.c