i2c: Use a separate mutex for userspace client lists
authorJean Delvare <khali@linux-fr.org>
Wed, 11 Aug 2010 16:21:01 +0000 (18:21 +0200)
committerJean Delvare <khali@linux-fr.org>
Wed, 11 Aug 2010 16:21:01 +0000 (18:21 +0200)
commitdafc50d141c27959dbd3a1cfe9857a86d23402a7
tree565aea94308f40813540f06d7bbcb322ae92eeed
parent8031d79baedabd44590d047d97a310eb0e0e4e0c
i2c: Use a separate mutex for userspace client lists

Moving userspace-instantiated clients to separate lists wasn't nearly
enough to avoid deadlocks in multiplexed bus cases. We also want to
have a dedicated mutex to protect each list.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Cc: Michael Lawnick <ml.lawnick@gmx.de>
drivers/i2c/i2c-core.c
include/linux/i2c.h