From: mochel@digitalimplant.org Date: Mon, 21 Mar 2005 18:41:04 +0000 (-0800) Subject: [PATCH] Add a semaphore to struct device to synchronize calls to its driver. X-Git-Tag: v2.6.13-rc1~68^2~583^2^2~57 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=af70316af182f4716cc5eec7e0d27fc731d164bd;p=pandora-kernel.git [PATCH] Add a semaphore to struct device to synchronize calls to its driver. This adds a per-device semaphore that is taken before every call from the core to a driver method. This prevents e.g. simultaneous calls to the ->suspend() or ->resume() and ->probe() or ->release(), potentially saving a whole lot of headaches. It also moves us a step closer to removing the bus rwsem, since it protects the fields in struct device that are modified by the core. Signed-off-by: Patrick Mochel Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed