fuse: dev read: split list_move
Different lists will need different locks.
Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
Reviewed-by: Ashish Samant <ashish.samant@oracle.com>
diff --git a/fs/fuse/dev.c b/fs/fuse/dev.c
index deafbdf..a450940 100644
--- a/fs/fuse/dev.c
+++ b/fs/fuse/dev.c
@@ -1289,7 +1289,8 @@
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;