From: Miklos Szeredi Date: Wed, 1 Jul 2015 14:26:02 +0000 (+0200) Subject: fuse: dev read: split list_move X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ef759258869c63e8df9b886ebaf9451c4bbe6cea;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.git fuse: dev read: split list_move Different lists will need different locks. Signed-off-by: Miklos Szeredi Reviewed-by: Ashish Samant --- diff --git a/fs/fuse/dev.c b/fs/fuse/dev.c index deafbdf278c6..a450940df45f 100644 --- a/fs/fuse/dev.c +++ b/fs/fuse/dev.c @@ -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;