Re: [PATCH] this mutex_lock is miss used

From: Al Viro
Date: Sun Apr 19 2009 - 11:32:39 EST


On Sun, Apr 19, 2009 at 10:03:55PM +0800, Zhenwen Xu wrote:
>
> This mutex_lock and mutex_unlock has no use in such way.

Incorrect. They delay sending response until we are out of audit_receive().

> It should be like this way:

No, it should not. In particular, it should *NOT* be held while sending
these packets.
--
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/