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

Martin K. Petersen
2013-04-25T01:44:05Z

>>>>> "Akinobu" == Akinobu Mita <akinobu.mita@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 memset().

Akinobu> Otherwise it will cause problem on big-endian architecture if
Akinobu> the number of bits is not a multiple of BITS_PER_LONG.

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

--
Martin K. Petersen Oracle Linux Engineering