block: Enhance new plugging support to support general callbacks

md/raid requires an unplug callback, but as it does not uses
requests the current code cannot provide one.

So allow arbitrary callbacks to be attached to the blk_plug.

Signed-off-by: NeilBrown <neilb@suse.de>
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
This commit is contained in:
NeilBrown 2011-04-18 09:52:22 +02:00 • committed by Jens Axboe
commit 048c9374a7
2 changed files with 26 additions and 1 deletions