Skip to content

Commit

Permalink
fuse: dev read: split list_move
Browse files Browse the repository at this point in the history
Different lists will need different locks.

Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
Reviewed-by: Ashish Samant <ashish.samant@oracle.com>
  • Loading branch information
Miklos Szeredi committed Jul 1, 2015
1 parent 8c91189 commit ef75925
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion fs/fuse/dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit ef75925

Please sign in to comment.