Re: [PATCH 2/8] fuse: flush pending fuse events before aborting the connection

Miklos Szeredi
2025-09-23T11:11:56Z

On Tue, 16 Sept 2025 at 02:24, Darrick J. Wong <djwong@kernel.org> wrote:

> + /*
> + * Wait for all the events to complete or abort. Touch the watchdog
> + * once per second so that we don't trip the hangcheck timer while
> + * waiting for the fuse server.
> + */
> + smp_mb();
> + while (wait_event_timeout(fc->blocked_waitq,
> + !fc->connected || atomic_read(&fc->num_waiting) == 0,
> + HZ) == 0)

I applied this patch, but then realized that I don't understand what's
going on here.

Why is this site special? Should the other waits for server response
be treated like this?

Thanks,
Miklos