[systemd-devel] [PATCH] udev: Adding zram to inappropriate block device
Alexander E. Patrakov
patrakov at gmail.com
Sun Feb 2 06:27:41 PST 2014
02.02.2014 20:18, "Jóhann B. Guðmundsson" wrote:
>
> On 02/02/2014 01:39 PM, Alexander E. Patrakov wrote:
>>
>> The patch is obviously harmless. However, I am not convinced that it
>> is needed, because in my setup (without this patch) there are no links
>> in /dev/disk pointing to any zram device. You can change my opinion by
>> providing configuration files that do result in such links being
>> created by systemd.
>
> udev seems to have a race condition with swapon to see which can open
> /dev/zram0 first, causing swapon to fail.
> ( seems to be most noticeable on arm devices one out of every 7 times or
> something ) and this patches udev's persistent storage rules to avoid
> probing any zram devices.
Thanks, this explains why the patch is needed. But this should really be
in the commit message :)
--
Alexander E. Patrakov
More information about the systemd-devel
mailing list