nvme: add helper nvme_setup_cmd()
authorMing Lin <[email protected]>
Tue, 12 Apr 2016 19:10:14 +0000 (13:10 -0600)
committerJens Axboe <[email protected]>
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 <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
drivers/nvme/host/core.c
drivers/nvme/host/nvme.h
drivers/nvme/host/pci.c