summaryrefslogtreecommitdiff
path: root/llkd
diff options
context:
space:
mode:
authorMark Salyzyn <salyzyn@google.com>2019-01-09 07:49:21 -0800
committerMark Salyzyn <salyzyn@google.com>2019-01-10 12:52:35 -0800
commit16649d22ca639b14bd7fd831cfa8ce6855ad1d70 (patch)
tree7107749e0745a9e7a795cc2a676b2fa84793e4b8 /llkd
parent2f171cc69ebdb0f2ebaf5168d34d3f8eeed90679 (diff)
downloadcore-16649d22ca639b14bd7fd831cfa8ce6855ad1d70.tar.gz
llkd: do not call sync()
sync() will never return if the io subsystem is locked up, drop it. Test: llkd_unit_test Bug: 122263600 Change-Id: Ib378124415ce94da987d73391b027dc10317dbe9
Diffstat (limited to 'llkd')
-rw-r--r--llkd/libllkd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llkd/libllkd.cpp b/llkd/libllkd.cpp
index 3c295b506..b26ad4df6 100644
--- a/llkd/libllkd.cpp
+++ b/llkd/libllkd.cpp
@@ -525,7 +525,7 @@ void llkPanicKernel(bool dump, pid_t tid, const char* state, const std::string&
// NOTREACHED
return;
}
- ::sync();
+ // Wish could ::sync() here, if storage is locked up, we will not continue.
if (dump) {
// Show all locks that are held
android::base::WriteStringToFd("d", sysrqTriggerFd);