]> git.baikalelectronics.ru Git - kernel.git/commit
Driver core: Add mutex for adding/removing memory blocks
authorNathan Fontenot <nfont@austin.ibm.com>
Tue, 19 Oct 2010 17:45:24 +0000 (12:45 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 22 Oct 2010 17:16:44 +0000 (10:16 -0700)
commitd3743fda28c7f9cdc27a214b85763115cb53ad7e
tree3d4d0209d71481e329eb68f0d82afe585b6a5da2
parent0b5e31c4b6ac63ab3862c250312dceec1808b464
Driver core: Add mutex for adding/removing memory blocks

Add a new mutex for use in adding and removing of memory blocks.  This
is needed to avoid any race conditions in which the same memory block could
be added and removed at the same time.

Signed-off-by: Nathan Fontenot <nfont@austin.ibm.com>
Reviewed-by: Robin Holt <holt@sgi.com>
Reviewed-By: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/base/memory.c