From: Matthew Wilcox Date: Tue, 13 Sep 2011 21:01:39 +0000 (-0400) Subject: NVMe: Correct sg list setup in nvme_map_user_pages X-Git-Tag: v3.3-rc1~16^2~19 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d0ba1e497bca83a3d353eb47c9658afc54d83228;p=pandora-kernel.git NVMe: Correct sg list setup in nvme_map_user_pages Our SG list was constructed to always fill the entire first page, even if that was more than the length of the I/O. This is probably harmless, but some IOMMUs might do something bad. Correcting the first call to sg_set_page() made it look a lot closer to the sg_set_page() in the loop, so fold the first call to sg_set_page() into the loop. Reported-by: Nisheeth Bhat Signed-off-by: Matthew Wilcox --- Reading git-diff-tree failed