blk: pass from_schedule to non-request unplug functions.
authorNeilBrown <neilb@suse.de>
Tue, 31 Jul 2012 07:08:15 +0000 (09:08 +0200)
committerJens Axboe <axboe@kernel.dk>
Tue, 31 Jul 2012 07:08:15 +0000 (09:08 +0200)
commit74018dc3063a2c729fc73041c0a9f03aac995920
tree03f01bca3a2d9f7cf31785fbe74e9ab76bb0d4cd
parent2a7d5559b346574057dce4672d1ed9aaa9d1e685
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>
block/blk-core.c
drivers/block/umem.c
drivers/md/md.c
drivers/md/md.h
include/linux/blkdev.h