]> git.baikalelectronics.ru Git - kernel.git/commit
nvme: add helper nvme_setup_cmd()
authorMing Lin <mlin@kernel.org>
Tue, 12 Apr 2016 19:10:14 +0000 (13:10 -0600)
committerJens Axboe <axboe@fb.com>
Tue, 12 Apr 2016 19:44:00 +0000 (13:44 -0600)
commitdbf8067c2f6afdc2a4d668043a5dcb4518578d4e
treea9a51fc5fc2d1f58343ff469b8e38d21b8525f51
parentffad838753b7b55b89873e9583d5b231e39a9a34
nvme: add helper nvme_setup_cmd()

This moves nvme_setup_{flush,discard,rw} calls into a common
nvme_setup_cmd() helper. So we can eventually hide all the command
setup in the core module and don't even need to update the fabrics
drivers for any specific command type.

Signed-off-by: Ming Lin <ming.l@ssi.samsung.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/nvme/host/core.c
drivers/nvme/host/nvme.h
drivers/nvme/host/pci.c