From: Keith Busch Date: Mon, 6 Oct 2014 21:23:06 +0000 (-0600) Subject: NVMe: Do not over allocate for discard requests X-Git-Tag: omap-for-v3.19/fixes-rc1~94^2~32 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9dbbfab7d54109626031bf3bc476fb1804113970;p=pandora-kernel.git NVMe: Do not over allocate for discard requests Discard requests are often for very large ranges. The discard size is not representative of the data transfer size so we don't need to allocate for such a large prp list. This patch requests allocating only enough for the memory needed for the data transfer and saves a little over 8k of memory per max discard request. Signed-off-by: Keith Busch Reported-by: Paul Grabinar Signed-off-by: Matthew Wilcox Signed-off-by: Jens Axboe --- Reading git-diff-tree failed