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)
commit8093f7ca73c1633e458c16a74b51bcc3c94564c4
treea9a51fc5fc2d1f58343ff469b8e38d21b8525f51
parent03b5929ebb20457e2fd13a701954efa2b2fb7ded
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