From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tejun Heo Date: Tue, 31 May 2011 15:31:39 +0000 Subject: Re: udev queue error Message-Id: <20110531153139.GA9048@mtj.dyndns.org> List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org Hello, On Mon, May 30, 2011 at 10:06:49PM +0200, Kay Sievers wrote: > Yeah, the fake cdrom on the stick seems pretty broken. It generates > media-changed events on very open(), and udev runs open() for the new > event, which ... creates the loop you are seeing. Ugh... :-( > We need to find a way to work around such issues in the kernel, I guess. > > Tejun, any idea? Hmmm... a couple of questions. * udev doesn't open device w/ O_EXCL, right? * Does a MEDIA_CHANGE event trigger multiple opens? I _think_ if udev opens only once, the event shouldn't be re-generated immediately. It will happen on the next poll interval but it won't be a busy loop. Thanks. -- tejun