aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/md.h
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2012-07-31 03:08:15 -0400
committerJens Axboe <axboe@kernel.dk>2012-07-31 03:08:15 -0400
commit74018dc3063a2c729fc73041c0a9f03aac995920 (patch)
tree03f01bca3a2d9f7cf31785fbe74e9ab76bb0d4cd /drivers/md/md.h
parent2a7d5559b346574057dce4672d1ed9aaa9d1e685 (diff)
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 'drivers/md/md.h')
-rw-r--r--drivers/md/md.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/md.h b/drivers/md/md.h
index 8f998e08fb87..f385b038589d 100644
--- a/drivers/md/md.h
+++ b/drivers/md/md.h
@@ -629,7 +629,7 @@ extern struct bio *bio_alloc_mddev(gfp_t gfp_mask, int nr_iovecs,
629 struct mddev *mddev); 629 struct mddev *mddev);
630extern void md_trim_bio(struct bio *bio, int offset, int size); 630extern void md_trim_bio(struct bio *bio, int offset, int size);
631 631
632extern void md_unplug(struct blk_plug_cb *cb); 632extern void md_unplug(struct blk_plug_cb *cb, bool from_schedule);
633static inline int mddev_check_plugged(struct mddev *mddev) 633static inline int mddev_check_plugged(struct mddev *mddev)
634{ 634{
635 return !!blk_check_plugged(md_unplug, mddev, 635 return !!blk_check_plugged(md_unplug, mddev,