mirror: Don't undo the MADV_SEQUENTIAL hinting over the course of a migration
This commit is contained in:
@@ -198,9 +198,6 @@ int mirror_pass(struct server * serve, int is_last_pass, uint64_t *written)
|
||||
0,
|
||||
serve->mirror->mapped + current,
|
||||
MS_REQUEST_LIMIT_SECS);
|
||||
madvise( serve->mirror->mapped + current,
|
||||
run,
|
||||
MADV_DONTNEED );
|
||||
|
||||
/* now mark it clean */
|
||||
bitset_clear_range(map, current, run);
|
||||
@@ -219,10 +216,6 @@ int mirror_pass(struct server * serve, int is_last_pass, uint64_t *written)
|
||||
}
|
||||
}
|
||||
|
||||
if ( !success ) {
|
||||
madvise( serve->mirror->mapped, serve->size, MADV_NORMAL );
|
||||
}
|
||||
|
||||
return success;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user