Messages in this thread | | | Date | Sat, 17 Jul 2010 21:04:05 +0200 | Subject | Re: 2.6.35-rc5 inconsistent lock state | From | Dan Carpenter <> |
| |
This is from:
commit 31373d09da5b7fe21fe6f781e92bd534a3495f00 Author: Matthew Garrett <mjg@redhat.com> Date: Tue Apr 6 14:25:14 2010 +0200
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.
One way to fix it might be to change all the places that call spin_lock(&bdi->wb_lock); to spin_lock_bh(&bdi->wb_lock); but I'm not sure that's the right way.
I don't think Matthew Garrett has a bugzilla account?
| |