Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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;