[systemd-devel] [PATCH] udev: Adding zram to inappropriate block device

"Jóhann B. Guðmundsson" johannbg at gmail.com
Sun Feb 2 06:18:46 PST 2014


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.

JBG


More information about the systemd-devel mailing list