diff options
author | Miklos Szeredi <mszeredi@redhat.com> | 2024-09-24 10:47:23 +0200 |
---|---|---|
committer | Miklos Szeredi <mszeredi@redhat.com> | 2024-09-24 10:56:09 +0200 |
commit | fcd2d9e1fdcd7cada612f2e8737fb13a2bce7d0e (patch) | |
tree | a02c9e399d6f1e0c0fccbc707bdfeda5ef2eb264 /fs | |
parent | 106e4593ed1b9925ca732a74f490e4f52ea4e65c (diff) |
fuse: clear FR_PENDING if abort is detected when sending request
The (!fiq->connected) check was moved into the queuing method resulting in
the following:
Fixes: 5de8acb41c86 ("fuse: cleanup request queuing towards virtiofs")
Reported-by: Lai, Yi <yi1.lai@linux.intel.com>
Closes: https://lore.kernel.org/all/ZvFEAM6JfrBKsOU0@ly-workstation/
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/fuse/dev.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/fuse/dev.c b/fs/fuse/dev.c index cdf925e0b317..53c4569d85a4 100644 --- a/fs/fuse/dev.c +++ b/fs/fuse/dev.c @@ -295,6 +295,7 @@ static void fuse_dev_queue_req(struct fuse_iqueue *fiq, struct fuse_req *req) } else { spin_unlock(&fiq->lock); req->out.h.error = -ENOTCONN; + clear_bit(FR_PENDING, &req->flags); fuse_request_end(req); } } |