On Wed, 16 Mar 2022 09:27:08 +0800, Ming Lei wrote: > sbitmap has been used in scsi for replacing atomic operations on > sdev->device_busy, so IOPS on some fast scsi storage can be improved. > > However, sdev->device_busy can be changed in fast path, so we have to > allocate the sb->map statically. sdev->device_busy has been capped to 1024, > but some drivers may configure the default depth as < 8, then > cause each sbitmap word to hold only one bit. Finally 1024 * 128( > sizeof(sbitmap_word)) bytes is needed for sb->map, given it is order 5 > allocation, sometimes it may fail. > > [...] Applied, thanks! [1/1] lib/sbitmap: allocate sb->map via kvzalloc_node commit: 863a66cdb4df25fd146d9851c3289072298566d5 Best regards, -- Jens Axboe