[PATCH 01/25] xor: assert that xor_blocks is not called from interrupt context
Peter Zijlstra
peterz at infradead.org
Thu Mar 5 02:15:48 AEDT 2026
On Wed, Mar 04, 2026 at 03:51:34PM +0100, Christoph Hellwig wrote:
> > How about "WARN_ON_ONCE(!preemptible())"? I think that covers the union
> > of the context restrictions correctly. (Compared to in_task(), it
> > handles the cases where hardirqs or softirqs are disabled.)
>
> Good enough I guess. Peter?
Sure. The only caveat with that is that for PREEMPT_COUNT=n this might
not work, it unconditionally returns 0.
More information about the Linuxppc-dev
mailing list