Skip to content
Snippets Groups Projects
Commit 31373d09 authored by Matthew Garrett's avatar Matthew Garrett Committed by Jens Axboe
Browse files

laptop-mode: Make flushes per-device


One of the features of laptop-mode is that it forces a writeout of dirty
pages if something else triggers a physical read or write from a device.
The current implementation flushes pages on all devices, rather than only
the one that triggered the flush. This patch alters the behaviour so that
only the recently accessed block device is flushed, preventing other
disks being spun up for no terribly good reason.

Signed-off-by: default avatarMatthew Garrett <mjg@redhat.com>
Signed-off-by: default avatarJens Axboe <jens.axboe@oracle.com>
parent 9195291e
Branches
Tags
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment