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)
commit2938ffbd466d2811a6012609684a2298eef35065
tree3d4d0209d71481e329eb68f0d82afe585b6a5da2
parente4619c857d1d769b1172a75ba6b6ebd1186a9c58
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