> From: Seonghyeon Lim <[email protected]>
> 
> virtio_can_open() sends the START command before it enables NAPI. Once
> the device has started, an RX or TX interrupt can arrive in between.
> The interrupt handler then disables the virtqueue callback and calls
> napi_schedule(), which does nothing because NAPI is still disabled.
> napi_enable() does not schedule a poll either, and only the poll
> function re-enables the callback, so the queue can stall until the
> device happens to send another interrupt.
> 
> Schedule NAPI once after napi_enable(), as virtio-net does in
> virtnet_napi_do_enable(). This processes buffers that are already used
> and re-enables the callback.
> 
> Fixes: 083082a4e6d8 ("can: virtio: Add virtio CAN driver")
> Cc: [email protected]
> Signed-off-by: Seonghyeon Lim <[email protected]>

Sashiko has reviewed this patch and found no issues.

-- 
Sashiko AI review ยท 
https://sashiko.dev/#/patchset/[email protected]?part=1


Reply via email to