Re: [PATCH v2] sbitmap: Silence a debug kernel warning triggered by sbitmap_put()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Bart,

> All sbitmap code uses implied preemption protection to update
> sb->alloc_hint except sbitmap_put(). Using implied preemption
> protection is safe since the value of sb->alloc_hint only affects
> performance of sbitmap allocations but not their correctness. Change
> this_cpu_ptr() in sbitmap_put() into raw_cpu_ptr() to suppress the
> following kernel warning that appears with preemption debugging
> enabled (CONFIG_DEBUG_PREEMPT):

Applied to 5.13/scsi-staging, thanks! (Since Ming's series is queued in
the SCSI tree).

-- 
Martin K. Petersen	Oracle Linux Engineering



[Index of Archives]     [Linux RAID]     [Linux SCSI]     [Linux ATA RAID]     [IDE]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Device Mapper]

  Powered by Linux