提交 24b4d33d 编写于 作者: M Miklos Szeredi

fuse: abort: group pqueue accesses

Rearrange fuse_abort_conn() so that processing queue accesses are grouped
together.
Signed-off-by: NMiklos Szeredi <mszeredi@suse.cz>
Reviewed-by: NAshish Samant <ashish.samant@oracle.com>
上级 82cbdcd3
......@@ -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);
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册