Re: [PATCH 3/6] scsi_debug: clear correct memory region when LBPRZ is enabled

Martin K. Petersen
2013-04-25T01:41:56Z

>>>>> "Akinobu" == Akinobu Mita <akinobu.mita@gmail.com> writes:

Akinobu> The function unmap_region() clears memory region specified as
Akinobu> the logical block address and the number of logical blocks in
Akinobu> ramdisk storage (fake_storep) if lbpu and lbprz module
Akinobu> parameters are enabled.

Akinobu> In the while loop of unmap_region(), it advances optimal unmap
Akinobu> granularity in logical blocks. But it only clears one logical
Akinobu> block at LBA 'block' per loop iteration. And furthermore, the
Akinobu> 'block' is not pointing to a logical block address which should
Akinobu> be cleared, it is a index of probisioning map (map_storep).

Acked-by: Martin K. Petersen <martin.petersen@oracle.com>

--
Martin K. Petersen Oracle Linux Engineering