Thread (3 messages) flat view 3 messages, 3 authors, 2021-03-25

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

From: Martin K. Petersen <hidden>
Date: 2021-03-25 03:55:20

On Tue, 16 Mar 2021 20:26:48 -0700, Bart Van Assche wrote:
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-queue, thanks!

[1/1] sbitmap: Silence a debug kernel warning triggered by sbitmap_put()
      https://git.kernel.org/mkp/scsi/c/035e9f471691

-- 
Martin K. Petersen	Oracle Linux Engineering
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help