dm: introduce target callbacks and congestion callback
authorNeilBrown <neilb@suse.de>
Thu, 13 Jan 2011 20:00:01 +0000 (20:00 +0000)
committerAlasdair G Kergon <agk@redhat.com>
Thu, 13 Jan 2011 20:00:01 +0000 (20:00 +0000)
commit6cb92957f0e416e710fb4a8b1c99ee69b21aebbe
tree48f2c3adc8ae06918ef0523f073291990407fa28
parent364e7b5a5722175dbbb1de36e9d0bc1dee671e82
dm: introduce target callbacks and congestion callback

DM currently implements congestion checking by checking on congestion
in each component device.  For raid456 we need to also check if the
stripe cache is congested.

Add per-target congestion checker callback support.

Extending the target_callbacks structure with additional callback
functions allows for establishing multiple callbacks per-target (a
callback is also needed for unplug).

Cc: linux-raid@vger.kernel.org
Signed-off-by: NeilBrown <neilb@suse.de>
Signed-off-by: Jonathan Brassow <jbrassow@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
drivers/md/dm-table.c
include/linux/device-mapper.h