Re: [PATCH 2/2] ide: unexport DISK_EVENT_MEDIA_CHANGE for ide-gdand ide-cd

From: David Miller
Date: Thu Apr 21 2011 - 13:14:45 EST


From: Tejun Heo <tj@xxxxxxxxxx>
Date: Thu, 21 Apr 2011 19:09:25 +0200

> 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: Tejun Heo <tj@xxxxxxxxxx>
> Reported-by: Jens Axboe <jaxboe@xxxxxxxxxxxx>

Acked-by: David S. Miller <davem@xxxxxxxxxxxxx>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/