rump: implement BIO_SYNC correctly
Send to storage and sync caches issue #2345
This commit is contained in:
parent
c60edb5636
commit
2cb767de2d
|
@ -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;
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue
Block a user