block: Enhance new plugging support to support general callbacks
authorNeilBrown <neilb@suse.de>
Mon, 18 Apr 2011 07:52:22 +0000 (09:52 +0200)
committerJens Axboe <jaxboe@fusionio.com>
Mon, 18 Apr 2011 07:52:22 +0000 (09:52 +0200)
commit048c9374a749a27f16493cea033fa4a8ff492356
tree64f520a1a2d2e1a9c30b45e306ce6f901f8f8d49
parenta1b49cb7e2a7961ec3aa8b64860bf480d4ec9077
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>
block/blk-core.c
include/linux/blkdev.h