Thread (4 messages) 4 messages, 2 authors, 2025-07-14

Re: [PATCH] i2c: virtio: Avoid hang by using interruptible completion wait

From: Viresh Kumar <viresh.kumar@linaro.org>
Date: 2025-07-14 03:39:27
Also in: linux-i2c, lkml

On 11-07-25, 16:51, Andi Shyti wrote:
Hi Viresh,

On Thu, Jul 03, 2025 at 05:01:02PM +0530, Viresh Kumar wrote:
quoted
The current implementation uses wait_for_completion(), which can cause
the caller to hang indefinitely if the transfer never completes.

Switch to wait_for_completion_interruptible() so that the operation can
be interrupted by signals.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Do we need the Fixes tag here?
Maybe we can add:

Fixes: 84e1d0bf1d71 ("i2c: virtio: disable timeout handling")

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