block: unexport DISK_EVENT_MEDIA_CHANGE for legacy/fringe drivers
authorTejun Heo <tj@kernel.org>
Thu, 21 Apr 2011 19:32:55 +0000 (21:32 +0200)
committerJens Axboe <jaxboe@fusionio.com>
Thu, 21 Apr 2011 19:33:05 +0000 (21:33 +0200)
commit9fd097b14918875bd6f125ed699d7bbbba5893ee
treea7d58268cbcfaeeddc7fdf75bf0742dc63434a46
parent91e8549bde9e5cc88c5a2e8c8114389279e240b5
block: unexport DISK_EVENT_MEDIA_CHANGE for legacy/fringe drivers

In-kernel disk event polling doesn't matter for legacy/fringe drivers
and may lead to infinite event loop if ->check_events() implementation
generates events on level condition instead of edge.

Now that block layer supports suppressing exporting unlisted events,
simply leaving disk->events cleared allows these drivers to keep the
internal revalidation behavior intact while avoiding weird
interactions with userland event handler.

Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: Kay Sievers <kay.sievers@vrfy.org>
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
15 files changed:
drivers/block/DAC960.c
drivers/block/amiflop.c
drivers/block/ataflop.c
drivers/block/floppy.c
drivers/block/paride/pcd.c
drivers/block/paride/pd.c
drivers/block/paride/pf.c
drivers/block/swim.c
drivers/block/swim3.c
drivers/block/ub.c
drivers/block/xsysace.c
drivers/cdrom/gdrom.c
drivers/cdrom/viocd.c
drivers/message/i2o/i2o_block.c
drivers/s390/char/tape_block.c