mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 21:57:43 +00:00
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:
parent
42dc6211c5
commit
73e0e73844
1 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue