Skip to content

Commit fcd2d9e

Browse files
author
Miklos Szeredi
committed
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: 5de8acb ("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>
1 parent 106e459 commit fcd2d9e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

fs/fuse/dev.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,7 @@ static void fuse_dev_queue_req(struct fuse_iqueue *fiq, struct fuse_req *req)
295295
} else {
296296
spin_unlock(&fiq->lock);
297297
req->out.h.error = -ENOTCONN;
298+
clear_bit(FR_PENDING, &req->flags);
298299
fuse_request_end(req);
299300
}
300301
}

0 commit comments

Comments
 (0)