-
由 Chen, Kenneth W 提交于
scsi_init_io calls scsi_alloc_sgtable and then calls blk_rq_map_sg to initialize the scatterlist structure. blk_rq_map_sg() already memset the structure for every new segment. That makes the memset in scsi_alloc_sgtable unnecessary. Patch to delete the extra memset in scsi_alloc_sgtable. Tested on a x86_64 machine. Looks stable to me. Signed-off-by: NKen Chen <kenneth.w.chen@intel.com> Signed-off-by: NJames Bottomley <James.Bottomley@SteelEye.com>
0f34e3f5