Re: [PATCH 2/2] Refine mutex and rcu method in module.c, kernel<3.2.9>

From: Cong Wang
Date: Fri Mar 09 2012 - 22:44:46 EST


On 03/08/2012 12:48 AM, Chen, Dennis (SRDC SW) wrote:
Adding dynamic debug maintainer -- Jason Baron...

-----Original Message-----
From: Chen, Dennis (SRDC SW)
Sent: Wednesday, March 07, 2012 10:57 PM
To: linux-kernel@xxxxxxxxxxxxxxx
Cc: Chen, Dennis (SRDC SW)
Subject: [PATCH 2/2] Refine mutex and rcu method in module.c, kernel<3.2.9>

1. Add protection code for module_bug_list readers
2. Add a new module_bug_mutex as the mutex of the module_bug_list writers

Take a look at the comments in the code:

/*
* Strictly speaking this should have a spinlock to protect against
* traversals, but since we only traverse on BUG()s, a spinlock
* could potentially lead to deadlock and thus be counter-productive.
*/


module_find_bug() is called in a dying path...
--
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/