]> git.baikalelectronics.ru Git - kernel.git/commit
NVMe: Initialize iod nents to 0
authorKeith Busch <keith.busch@intel.com>
Tue, 6 Nov 2012 18:59:23 +0000 (11:59 -0700)
committerMatthew Wilcox <matthew.r.wilcox@intel.com>
Tue, 13 Nov 2012 14:13:50 +0000 (09:13 -0500)
commiteda14c5141c4f4d6d231a22feeec4bf7c1010094
treeb04dab3e3bcc798ddc88fae6886271d540e72dff
parent4f1e1ec7567d79d6f4c31d787c04beb9e0ec8555
NVMe: Initialize iod nents to 0

For commands that do not map a scatter list, we need to initilaize the iod's
number of sg entries (nents) to 0 and not unmap in this case.

Signed-off-by: Keith Busch <keith.busch@intel.com>
Signed-off-by: Matthew Wilcox <matthew.r.wilcox@intel.com>
drivers/block/nvme.c