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

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
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment