Re: [PATCH] vduse: Use proper spinlock for IRQ injection
From: Yongji Xie <hidden>
Date: 2023-07-31 02:25:25
Also in:
lkml
From: Yongji Xie <hidden>
Date: 2023-07-31 02:25:25
Also in:
lkml
On Wed, Jul 5, 2023 at 7:45 PM Maxime Coquelin [off-list ref] wrote:
The IRQ injection work used spin_lock_irq() to protect the
scheduling of the softirq, but spin_lock_bh() should be
used.
With spin_lock_irq(), we noticed delay of more than 6
seconds between the time a NAPI polling work is scheduled
and the time it is executed.
Fixes: c8a6153b6c59 ("vduse: Introduce VDUSE - vDPA Device in Userspace")
Cc: xieyongji@bytedance.com
Suggested-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: Maxime Coquelin <redacted>Reviewed-by: Xie Yongji <redacted> Thanks, Yongji