Re: [rtc-linux] Re: BUG: lock held when returning to user space
From: Alessandro Zummo
Date: Mon Oct 29 2007 - 08:28:37 EST
On Sun, 28 Oct 2007 00:47:15 +0200 (CEST)
Jiri Kosina <jikos@xxxxxxxx> wrote:
> Yes, but the fact is that is really is invalid use of mutex -- because the
> mutex owner could become seriously wrong after fork() or sending the
> filedescriptor through unix socket ... this easily leads to broken
> situation.
>
> This seems to have been introduced in e824290e5d ... Alessandro, could you
> convert this to test_and_set_bit()/clear_bit() semantics instead of a
> mutex please?
Hi Jiri,
I was away for the weekend and just saw the whole discussion
and your patch and I'm happy to ack it. Thank you very much
a thanks to Gabriel for the bug report!
--
Best regards,
Alessandro Zummo,
Tower Technologies - Torino, Italy
http://www.towertech.it
-
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/