Skip to content

Commit

Permalink
fuse: reset waiting
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Miklos Szeredi committed Jul 1, 2015
1 parent 42dc621 commit 73e0e73
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion fs/fuse/dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 73e0e73

Please sign in to comment.