mirror of
https://github.com/linux-msm/laptops-kernel.git
synced 2026-08-13 14:19:53 -07: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:
+3
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user