Skip to contentSkip to conversation

udevadm settle waiting on an empty queue

DISCUSSION Marco d'Itri 3 participants 5 messages Nov 5, 2009

lore
Share & tools
lore
#0 lore raw

What could cause udevadm settle to wait even if the queue is empty? Apparently this is fully reproducible by at least two users.

----- Forwarded message from Christopher Schramm <[email protected]> -----

From: Christopher Schramm <[email protected]>
To: Marco d'Itri <[email protected]>
CC: [email protected]

[...]

I just tried and found out the problem also occurs when calling udevadm in the running system. So I can comfortably debug it if you tell me how to start.

Output is "After the udevadm settle timeout, the events queue contains:" with two empty lines above and three below.

----- End forwarded message -----

Signature · 2 lines
ciao,
Marco
#1 lore raw
Quoted 15 lines · Marco d'Itri

What could cause udevadm settle to wait even if the queue is empty? Apparently this is fully reproducible by at least two users.

----- Forwarded message from Christopher Schramm <[email protected]> -----

From: Christopher Schramm <[email protected]>
To: Marco d'Itri <[email protected]>
CC: [email protected]

[...]

I just tried and found out the problem also occurs when calling udevadm in the running system. So I can comfortably debug it if you tell me how to start.

Quoted 8 lines

Output is "After the udevadm settle timeout, the events queue contains:" with two empty lines above and three below.

----- End forwarded message -----

--
ciao,
Marco

Thanks. I should be able to reproduce and debug it, given the contents of /dev/.udev/queue.bin and /sys/kernel/uevent_seqnum.

I guess it's a bug in the binary queue I wrote.

This would happen if udevd was terminated, so that it didn't have a change to remove /dev/.udev/queue.bin, and if an event occurred subsequent to that. But that's always been an issue and it doesn't sound like it's whats happens here.

Regards
Alan

#2 lore raw
In reply to Marco d'Itri
Quoted 9 lines · Christopher Schramm
Quoted 2 lines · Alan Jenkins

Thanks. I should be able to reproduce and debug it, given the contents of /dev/.udev/queue.bin and /sys/kernel/uevent_seqnum.

Please find attached.

Best Regards
Christopher Schramm

#3 lore raw
In reply to Marco d'Itri
Quoted 9 lines · Christopher Schramm
Quoted 2 lines · Alan Jenkins

Thanks. I should be able to reproduce and debug it, given the contents of /dev/.udev/queue.bin and /sys/kernel/uevent_seqnum.

Please find attached.

Best Regards
Christopher Schramm

Ok, I failed to reproduce it. But now I look at the archives I see it's probably already been reported and fixed -

<http://www.spinics.net/lists/hotplug/msg02998.html>

Regards
Alan