rump: implement BIO_SYNC correctly

Send to storage and sync caches

issue #2345
This commit is contained in:
Sebastian Sumpf 2017-03-22 14:00:19 +01:00 committed by Christian Helmuth
parent c60edb5636
commit 2cb767de2d

View File

@ -62,12 +62,6 @@ class Backend
{
using namespace Block;
/* sync request */
if (op & RUMPUSER_BIO_SYNC) {
sync();
return true;
}
Genode::Lock::Guard guard(_session_lock);
Packet_descriptor::Opcode opcode;
@ -99,6 +93,11 @@ class Backend
bool succeeded = packet.succeeded();
_session.tx()->release_packet(packet);
/* sync request */
if (op & RUMPUSER_BIO_SYNC) {
_session.sync();
}
return succeeded;
}
};