mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
[PATCH] fuse: fuse_copy_finish() order fix
fuse_copy_finish() must be called before request_end(), since the later might sleep, and no sleeping is allowed between fuse_copy_one() and fuse_copy_finish() because of kmap_atomic()/kunmap_atomic() used in them. Signed-off-by: Miklos Szeredi <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
f87fd4c2a0
commit
222f1d6918
1 changed files with 3 additions and 1 deletions
|
|
@ -773,8 +773,10 @@ static ssize_t fuse_dev_writev(struct file *file, const struct iovec *iov,
|
|||
|
||||
list_del_init(&req->list);
|
||||
if (req->interrupted) {
|
||||
request_end(fc, req);
|
||||
spin_unlock(&fuse_lock);
|
||||
fuse_copy_finish(&cs);
|
||||
spin_lock(&fuse_lock);
|
||||
request_end(fc, req);
|
||||
return -ENOENT;
|
||||
}
|
||||
req->out.h = oh;
|
||||
|
|
|
|||
Loading…
Reference in a new issue