Thread (47 messages) 47 messages, 9 authors, 2021-02-24

Re: [PATCH 34/33] netfs: Use in_interrupt() not in_softirq()

From: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Date: 2021-02-16 09:07:47
Also in: ceph-devel, linux-cifs, linux-fsdevel, linux-nfs, lkml

On 2021-02-16 09:42:30 [+0100], Christoph Hellwig wrote:
On Mon, Feb 15, 2021 at 10:46:23PM +0000, David Howells wrote:
quoted
The in_softirq() in netfs_rreq_terminated() works fine for the cache being
on a normal disk, as the completion handlers may get called in softirq
context, but for an NVMe drive, the completion handler may get called in
IRQ context.

Fix to use in_interrupt() instead of in_softirq() throughout the read
helpers, particularly when deciding whether to punt code that might sleep
off to a worker thread.
We must not use either check, as they all are unreliable especially
for PREEMPT-RT.
Yes, please. I try to cleanup the users one by one
    https://lore.kernel.org/r/20200914204209.256266093@linutronix.de/ (local)
    https://lore.kernel.org/amd-gfx/20210209124439.408140-1-bigeasy@linutronix.de/ (local)

Sebastian
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help