Commit ef759258 authored by Miklos Szeredi's avatar Miklos Szeredi
Browse files

fuse: dev read: split list_move



Different lists will need different locks.
Signed-off-by: default avatarMiklos Szeredi <mszeredi@suse.cz>
Reviewed-by: default avatarAshish Samant <ashish.samant@oracle.com>
parent 8c91189a
......@@ -1289,7 +1289,8 @@ static ssize_t fuse_dev_do_read(struct fuse_conn *fc, struct file *file,
req = list_entry(fiq->pending.next, struct fuse_req, list);
clear_bit(FR_PENDING, &req->flags);
list_move(&req->list, &fc->io);
list_del_init(&req->list);
list_add(&req->list, &fc->io);
in = &req->in;
reqsize = in->h.len;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment