Re: [PATCH] Re: Oops using 2.6.28.n after a lazy umount of a cryptedloop-device

From: Milan Broz
Date: Fri Mar 06 2009 - 03:25:21 EST


Alexander Holler wrote:
> Milan Broz schrieb:
>> Please Can you try attached patch if helps here?
>> (Patch is not perfect, but should help, at least identify that
>> it is the same problem I am fixing:-)
>
> The patch works (I had to add an #include <linux/delay.h> /* msleep */).

ok, thanks.


> I've tested it using 2.6.28.7 and the script below. With your patch the
> script was running over night looping about 400 times without any error.
> A crosscheck without the patch needed only 10 iterations to get an oops.
> So I assume you have fixed the problem I had. ;)
>
> There stills seems to be another problem left, I've got 3 times the
> kernel-message
>
> device-mapper: ioctl: unable to remove open device
> temporary-cryptsetup-21571

This is bug in cryptsetup related to udev (udev should not touch temporary
cryptsetup device) which is fixed upstream, but there is no
new release yet (Fedora has this patched, not sure about other distros)

see http://code.google.com/p/cryptsetup/source/detail?r=32 and other patches.

Milan
--
mbroz@xxxxxxxxxx

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/