Rearrange fuse_abort_conn() so that processing queue accesses are grouped
together.
Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
Reviewed-by: Ashish Samant <ashish.samant@oracle.com>
list_move(&req->list, &to_end1);
spin_unlock(&req->waitq.lock);
}
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);
fc->max_background = UINT_MAX;
flush_bg_queue(fc);
spin_unlock(&fiq->waitq.lock);
kill_fasync(&fiq->fasync, SIGIO, POLL_IN);
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);
while (!list_empty(&to_end1)) {
req = list_first_entry(&to_end1, struct fuse_req, list);
__fuse_get_request(req);