Skip to content

Commit ef75925

Browse files
author
Miklos Szeredi
committed
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>
1 parent 8c91189 commit ef75925

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎fs/fuse/dev.c‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1289,7 +1289,8 @@ static ssize_t fuse_dev_do_read(struct fuse_conn *fc, struct file *file,
12891289

12901290
req = list_entry(fiq->pending.next, struct fuse_req, list);
12911291
clear_bit(FR_PENDING, &req->flags);
1292-
list_move(&req->list, &fc->io);
1292+
list_del_init(&req->list);
1293+
list_add(&req->list, &fc->io);
12931294

12941295
in = &req->in;
12951296
reqsize = in->h.len;

0 commit comments

Comments
 (0)