Skip to content

Commit

Permalink
fuse: abort: group pqueue accesses
Browse files Browse the repository at this point in the history
Rearrange fuse_abort_conn() so that processing queue accesses are grouped
together.

Signed-off-by: Miklos Szeredi <[email protected]>
Reviewed-by: Ashish Samant <[email protected]>
  • Loading branch information
Miklos Szeredi committed Jul 1, 2015
1 parent 82cbdcd commit 24b4d33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/fuse/dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -2139,6 +2139,7 @@ void fuse_abort_conn(struct fuse_conn *fc)
list_move(&req->list, &to_end1);
spin_unlock(&req->waitq.lock);
}
list_splice_init(&fpq->processing, &to_end2);
fc->max_background = UINT_MAX;
flush_bg_queue(fc);

Expand All @@ -2151,7 +2152,6 @@ void fuse_abort_conn(struct fuse_conn *fc)
spin_unlock(&fiq->waitq.lock);
kill_fasync(&fiq->fasync, SIGIO, POLL_IN);

list_splice_init(&fpq->processing, &to_end2);
while (!list_empty(&to_end1)) {
req = list_first_entry(&to_end1, struct fuse_req, list);
__fuse_get_request(req);
Expand Down

0 comments on commit 24b4d33

Please sign in to comment.