From 36cadd78fc6f60968d85e11e4dd533005f0dfde6 Mon Sep 17 00:00:00 2001 From: Uwe Seimet <48174652+uweseimet@users.noreply.github.com> Date: Sun, 6 Feb 2022 20:43:50 +0100 Subject: [PATCH] Flush the RaSCSI write cache on SYNCHRONIZE CACHE (#645) --- src/raspberrypi/devices/disk.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/raspberrypi/devices/disk.cpp b/src/raspberrypi/devices/disk.cpp index 11f6caab..ac3de0eb 100644 --- a/src/raspberrypi/devices/disk.cpp +++ b/src/raspberrypi/devices/disk.cpp @@ -517,7 +517,8 @@ void Disk::PreventAllowMediumRemoval(SASIDEV *controller) void Disk::SynchronizeCache10(SASIDEV *controller) { - // Nothing to do + // Flush the RaSCSI cache + disk.dcache->Save(); controller->Status(); }