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)
commit2b1960341576bf51c01b12fefeb1cc53820923e7
treeb04dab3e3bcc798ddc88fae6886271d540e72dff
parent6ecec74520d8a357726e6c12f99080dbe7b347dd
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