flexnbd: clients should be MADV_RANDOM, rather than MADV_SEQUENTIAL

This commit is contained in:
nick
2013-07-24 14:18:23 +01:00
parent 14db3315ca
commit 7de22a385e

View File

@@ -627,7 +627,7 @@ void* client_serve(void* client_uncast)
);
FATAL_IF_NEGATIVE(
madvise( client->mapped, client->serve->size, MADV_SEQUENTIAL ),
madvise( client->mapped, client->serve->size, MADV_RANDOM ),
SHOW_ERRNO( "Failed to madvise() %s", client->serve->filename )
);