Merge "uncrypt: remove O_SYNC to avoid time-out failures"
am: e4a3da9f51

* commit 'e4a3da9f51ca1e02179a1e0851f26015f4ec07fa':
  uncrypt: remove O_SYNC to avoid time-out failures
diff --git a/uncrypt/uncrypt.cpp b/uncrypt/uncrypt.cpp
index aef4800..6db4382 100644
--- a/uncrypt/uncrypt.cpp
+++ b/uncrypt/uncrypt.cpp
@@ -234,7 +234,7 @@
     int wfd = -1;
     unique_fd wfd_holder(wfd);
     if (encrypted) {
-        wfd = open(blk_dev, O_WRONLY | O_SYNC);
+        wfd = open(blk_dev, O_WRONLY);
         wfd_holder = unique_fd(wfd);
         if (wfd == -1) {
             ALOGE("failed to open fd for writing: %s\n", strerror(errno));