Skip to content
Commit 7eec77a1 authored by Tejun Heo's avatar Tejun Heo Committed by Jens Axboe
Browse files

ide: unexport DISK_EVENT_MEDIA_CHANGE for ide-gd and ide-cd



check_events() implementations in both ide-gd and ide-cd are
inadequate for in-kernel event polling.  Both generate media change
events continuously when certain conditions are met causing infinite
event loop between the driver and userland event handler.

As disk event now supports suppression of unlisted events, simply
de-listing DISK_EVENT_MEDIA_CHANGE from disk->events resolves the
problem.  Internal handling around media revalidation will behave the
same while userland will fall back to userland event polling after
detecting the device doesn't support disk events.

Signed-off-by: default avatarTejun Heo <tj@kernel.org>
Reported-by: default avatarJens Axboe <jaxboe@fusionio.com>
Acked-by: default avatar"David S. Miller" <davem@davemloft.net>
Signed-off-by: default avatarJens Axboe <jaxboe@fusionio.com>
parent 7c88a168
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment