From: Matthew Wilcox Date: Fri, 6 Jan 2012 20:42:45 +0000 (-0700) Subject: NVMe: Fix DMA mapping for admin commands X-Git-Tag: v3.3-rc1~16^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=497421880acecd0281d3182d534f3d28c927caec;p=pandora-kernel.git NVMe: Fix DMA mapping for admin commands We were always mapping as DMA_FROM_DEVICE then unmapping with DMA_TO_DEVICE which was clearly not correct. Follow the same pattern as nvme_submit_io() and key off the bottom bit of the opcode to determine whether this is a read or a write. Signed-off-by: Matthew Wilcox --- Reading git-diff-tree failed