[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20110421.101404.02262055.davem@davemloft.net>
Date: Thu, 21 Apr 2011 10:14:04 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: tj@...nel.org
Cc: jaxboe@...ionio.com, torvalds@...ux-foundation.org, hch@....de,
neilb@...e.de, linux-kernel@...r.kernel.org,
linux-ide@...r.kernel.org, kay.sievers@...y.org
Subject: Re: [PATCH 2/2] ide: unexport DISK_EVENT_MEDIA_CHANGE for ide-gd
and ide-cd
From: Tejun Heo <tj@...nel.org>
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@...nel.org>
> Reported-by: Jens Axboe <jaxboe@...ionio.com>
Acked-by: David S. Miller <davem@...emloft.net>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists