projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0e76abf
)
ceph: make ceph_update_writeable_page() uninterruptible
author
Yan, Zheng
<zyan@redhat.com>
Fri, 13 May 2016 03:30:24 +0000
(11:30 +0800)
committer
Ilya Dryomov
<idryomov@gmail.com>
Wed, 25 May 2016 23:15:41 +0000
(
01:15
+0200)
ceph_update_writeable_page() is used by ceph_write_begin(). It beaks
atomicity of write operation if it's interruptible.
Signed-off-by: Yan, Zheng <zyan@redhat.com>
fs/ceph/addr.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/ceph/addr.c
b/fs/ceph/addr.c
index 97ee5d1fbb61fc67433d2338f1041622d0e75d8d..4aa8e375e648bc49c3bf8dba6d8d6d545787d706 100644
(file)
--- a/
fs/ceph/addr.c
+++ b/
fs/ceph/addr.c
@@
-1168,7
+1168,7
@@
retry_locked:
snapc = ceph_get_snap_context(snapc);
unlock_page(page);
ceph_queue_writeback(inode);
- r = wait_event_
interrupti
ble(ci->i_cap_wq,
+ r = wait_event_
killa
ble(ci->i_cap_wq,
context_is_writeable_or_written(inode, snapc));
ceph_put_snap_context(snapc);
if (r == -ERESTARTSYS)