]> git.baikalelectronics.ru Git - kernel.git/commit
NVMe: fix build with CONFIG_NVM enabled
authorChristoph Hellwig <hch@lst.de>
Thu, 3 Dec 2015 16:52:05 +0000 (09:52 -0700)
committerJens Axboe <axboe@fb.com>
Thu, 3 Dec 2015 16:52:05 +0000 (09:52 -0700)
commit3096f912b1b53095fec579e57ad5bb2c358f7274
treee4b941a572a155e7c098e7f6dbe66fbc405133e0
parent536cac57a746a0bd20297b7a4e4c2dbf5e21b0e7
NVMe: fix build with CONFIG_NVM enabled

Looks like I didn't test with CONFIG_NVM enabled, and neither did
the build bot.

Most of this is really weird crazy shit in the lighnvm support, though.

Struct nvme_ns is a structure for the NVM I/O command set, and it has
no business poking into it.  Second this commit:

commit 1ee98cbe71a0e2337f54f2bcf1cdbf589ec90803
Author: Wenwei Tao <ww.tao0320@gmail.com>
Date:   Fri Nov 20 13:47:55 2015 +0100

    nvme: lightnvm: use admin queues for admin cmds

Does even more crazy stuff.  If a function gets a request_queue parameter
passed it'd better use that and not look for another one.

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