Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 73e0e738 authored by Miklos Szeredi's avatar Miklos Szeredi
Browse files

fuse: reset waiting



Reset req->waiting in fuse_put_request().  This is needed for correct
accounting in fc->num_waiting for reserved requests.

Signed-off-by: default avatarMiklos Szeredi <mszeredi@suse.cz>
parent 42dc6211
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -287,8 +287,10 @@ void fuse_put_request(struct fuse_conn *fc, struct fuse_req *req)
			spin_unlock(&fc->lock);
		}

		if (req->waiting)
		if (req->waiting) {
			atomic_dec(&fc->num_waiting);
			req->waiting = 0;
		}

		if (req->stolen_file)
			put_reserved_req(fc, req);