Re: [PATCH 5/6] scsi_debug: fix initialization of provisioning map

2013-04-24 Thread Martin K. Petersen
Akinobu == Akinobu Mita akinobu.m...@gmail.com writes: Akinobu provisioning map (map_storep) is a bitmap accessed by bitops. Akinobu So the allocation size should be a multiple of sizeof(unsigned Akinobu long) and also the bitmap should be cleared by using Akinobu bitmap_clear() instead of

[PATCH 5/6] scsi_debug: fix initialization of provisioning map

2013-04-16 Thread Akinobu Mita
provisioning map (map_storep) is a bitmap accessed by bitops. So the allocation size should be a multiple of sizeof(unsigned long) and also the bitmap should be cleared by using bitmap_clear() instead of memset(). Otherwise it will cause problem on big-endian architecture if the number of bits