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
This commit is contained in:
Mark Salyzyn 2019-01-09 07:49:21 -08:00
parent 2f171cc69e
commit 16649d22ca

View file

@ -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);