diff options
| author | Andrew Morton <akpm@osdl.org> | 2004-04-12 00:15:25 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-04-12 00:15:25 -0700 |
| commit | 1fe10e2fe95d278cc83226abfb7fa4bf2adb92df (patch) | |
| tree | a3552a71a98e4a2d2f4580327aa24dd4d56f71d7 /kernel | |
| parent | 6a435d69de04e96de8001edbd4a3da94eaec56b3 (diff) | |
[PATCH] Implement queue congestion callout for device mapper
From: Miquel van Smoorenburg <miquels@cistron.nl>
Joe Thornber <thornber@redhat.com>
This implements the queue congestion callout for DM stacks. To make
bdi_read/write_congested() return correct information.
- md->lock protects all fields in md _except_ md->map
- md->map_lock protects md->map
- Anyone who wants to read md->map should use dm_get_table() which
increments the tables reference count.
This means the spin lock is now only held for the duration of a
reference count increment.
Udpate:
dm.c: protect md->map with a rw spin lock rather than the md->lock
semaphore. Also ensure that everyone accesses md->map through
dm_get_table(), rather than directly.
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions
