summaryrefslogtreecommitdiff
path: root/fs/ceph/addr.c
diff options
context:
space:
mode:
authorYan, Zheng <zyan@redhat.com>2016-05-13 03:30:24 (GMT)
committerIlya Dryomov <idryomov@gmail.com>2016-05-25 23:15:41 (GMT)
commita78bbd4b29c29784f0addb5e3b35790c7ed178ae (patch)
tree7b4f44b5d056b9458140ed0517fa755e185107d7 /fs/ceph/addr.c
parent0e76abf21e769245b6eebb27b439ad014ac49292 (diff)
downloadlinux-a78bbd4b29c29784f0addb5e3b35790c7ed178ae.tar.xz
ceph: make ceph_update_writeable_page() uninterruptible
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>
Diffstat (limited to 'fs/ceph/addr.c')
-rw-r--r--fs/ceph/addr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ceph/addr.c b/fs/ceph/addr.c
index 97ee5d1..4aa8e37 100644
--- 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_interruptible(ci->i_cap_wq,
+ r = wait_event_killable(ci->i_cap_wq,
context_is_writeable_or_written(inode, snapc));
ceph_put_snap_context(snapc);
if (r == -ERESTARTSYS)