diff options
author | NeilBrown <neilb@suse.de> | 2012-07-31 09:08:15 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2012-07-31 09:08:15 +0200 |
commit | 74018dc3063a2c729fc73041c0a9f03aac995920 (patch) | |
tree | 03f01bca3a2d9f7cf31785fbe74e9ab76bb0d4cd /include | |
parent | 2a7d5559b346574057dce4672d1ed9aaa9d1e685 (diff) | |
download | linux-74018dc3063a2c729fc73041c0a9f03aac995920.tar.gz linux-74018dc3063a2c729fc73041c0a9f03aac995920.tar.bz2 linux-74018dc3063a2c729fc73041c0a9f03aac995920.zip |
blk: pass from_schedule to non-request unplug functions.
This will allow md/raid to know why the unplug was called,
and will be able to act according - if !from_schedule it
is safe to perform tasks which could themselves schedule.
Signed-off-by: NeilBrown <neilb@suse.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/blkdev.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h index 607ca228f47e..4e72a9d48232 100644 --- a/include/linux/blkdev.h +++ b/include/linux/blkdev.h @@ -923,7 +923,7 @@ struct blk_plug { #define BLK_MAX_REQUEST_COUNT 16 struct blk_plug_cb; -typedef void (*blk_plug_cb_fn)(struct blk_plug_cb *); +typedef void (*blk_plug_cb_fn)(struct blk_plug_cb *, bool); struct blk_plug_cb { struct list_head list; blk_plug_cb_fn callback; |