]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitffad838753b7b55b89873e9583d5b231e39a9a34
tree713f9e78c17354d097500c365f66342d09351115
parent0213d473c5166b48227a326a172d652b614aef80
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