提交 73e0e738 编写于 作者: M 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: NMiklos Szeredi <mszeredi@suse.cz>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册