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: Miklos Szeredi <mszeredi@suse.cz>
This commit is contained in:
Miklos Szeredi 2015-07-01 16:25:56 +02:00
parent 42dc6211c5
commit 73e0e73844

View file

@ -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);