nvme: rewrite discard support
authorMing Lin <ming.l@ssi.samsung.com>
Tue, 22 Mar 2016 07:24:45 +0000 (00:24 -0700)
committerJens Axboe <axboe@fb.com>
Tue, 12 Apr 2016 19:44:00 +0000 (13:44 -0600)
commit03b5929ebb20457e2fd13a701954efa2b2fb7ded
tree713f9e78c17354d097500c365f66342d09351115
parent58b45602751ddf16e57170656670aa5a8f78eeca
nvme: rewrite discard support

This rewrites nvme_setup_discard() with blk_add_request_payload().
It allocates only the necessary amount(16 bytes) for the payload.

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/pci.c