]> www.infradead.org Git - users/jedix/linux-maple.git/commit
nvme: rewrite discard support
authorMing Lin <ming.l@ssi.samsung.com>
Tue, 22 Mar 2016 07:24:45 +0000 (00:24 -0700)
committerChuck Anderson <chuck.anderson@oracle.com>
Thu, 1 Jun 2017 20:41:13 +0000 (13:41 -0700)
commit28e95c0e0dabae67120bd5076c568f56cdb84115
treea6a0bb8983218eeb4b9a767e175699c162bbe73d
parentc234705f1fa6e9043acd5100bb7ce36c6189b62c
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>
(cherry picked from commit 03b5929ebb20457e2fd13a701954efa2b2fb7ded)

Orabug: 25130845

Signed-off-by: Ashok Vairavan <ashok.vairavan@oracle.com>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/nvme/host/pci.c