mdev: if a "future" mdev.seq is seen, do not overwrite it with ours
authorDenys Vlasenko <vda.linux@googlemail.com>
Sun, 19 Apr 2015 16:55:12 +0000 (18:55 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Sun, 19 Apr 2015 16:55:12 +0000 (18:55 +0200)
commitad795510d9fd6f4290be170c84c0d30eb1af7245
treed9fdc1a48404e9d26b016adbfe3e58e7a0e279e9
parentbd77e9d6093dc8632788a3c3efffd53ac8ba3233
mdev: if a "future" mdev.seq is seen, do not overwrite it with ours

This was seen to happen if two mdevs are run in parallel,
mdev.seq is empty, and the "newer" one manages to write it first.

function                                             old     new   delta
mdev_main                                           1366    1388     +22
atoll                                                  -      20     +20

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
util-linux/mdev.c