Re: [PATCH 1/6] scsi_debug: call map_region() and unmap_region() only when needed

2013-04-24 Thread Martin K. Petersen
Akinobu == Akinobu Mita akinobu.m...@gmail.com writes: Akinobu If the logical block provisioning is not enabled, map_region() Akinobu and unmap_region() have no effect and they don't need to be Akinobu called. Akinobu So this makes map_region() and unmap_region() to be called only Akinobu when

[PATCH 1/6] scsi_debug: call map_region() and unmap_region() only when needed

2013-04-16 Thread Akinobu Mita
If the logical block provisioning is not enabled, map_region() and unmap_region() have no effect and they don't need to be called. So this makes map_region() and unmap_region() to be called only when scsi_debug_lbp() returns true, i.e. logical block provisioning is enabled. While I'm at it, this