diff options
author | Tejun Heo <tj@kernel.org> | 2011-04-21 19:43:58 +0200 |
---|---|---|
committer | Jens Axboe <jaxboe@fusionio.com> | 2011-04-21 19:43:58 +0200 |
commit | 7c88a168da8003fd4d8fb6ae103c4ecf29cb1130 (patch) | |
tree | 121d1b65615faf98e3c77f066b50527275d4b4c3 /drivers/ide | |
parent | elevator: check for ELEVATOR_INSERT_SORT_MERGE in !elvpriv case too (diff) | |
download | linux-7c88a168da8003fd4d8fb6ae103c4ecf29cb1130.tar.xz linux-7c88a168da8003fd4d8fb6ae103c4ecf29cb1130.zip |
block: don't propagate unlisted DISK_EVENTs to userland
DISK_EVENT_MEDIA_CHANGE is used for both userland visible event and
internal event for revalidation of removeable devices. Some legacy
drivers don't implement proper event detection and continuously
generate events under certain circumstances. For example, ide-cd
generates media changed continuously if there's no media in the drive,
which can lead to infinite loop of events jumping back and forth
between the driver and userland event handler.
This patch updates disk event infrastructure such that it never
propagates events not listed in disk->events to userland. Those
events are processed the same for internal purposes but uevent
generation is suppressed.
This also ensures that userland only gets events which are advertised
in the @events sysfs node lowering risk of confusion.
Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
Diffstat (limited to 'drivers/ide')
0 files changed, 0 insertions, 0 deletions