projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8c91189
)
fuse: dev read: split list_move
author
Miklos Szeredi
<mszeredi@suse.cz>
Wed, 1 Jul 2015 14:26:02 +0000
(16:26 +0200)
committer
Miklos Szeredi
<mszeredi@suse.cz>
Wed, 1 Jul 2015 14:26:02 +0000
(16:26 +0200)
Different lists will need different locks.
Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
Reviewed-by: Ashish Samant <ashish.samant@oracle.com>
fs/fuse/dev.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/fuse/dev.c
b/fs/fuse/dev.c
index deafbdf278c6b6a387692bf34ae5deea7e376e65..a450940df45f2f4a94029fd6c128590e138b0c32 100644
(file)
--- 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;