OSDN Git Service

Staging: heci: fix spinlock order mess of device_lock and read_io_lock
authorDongxiao Xu <dongxiao.xu@intel.com>
Sun, 31 May 2009 06:43:42 +0000 (14:43 +0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 19 Jun 2009 18:00:55 +0000 (11:00 -0700)
commit72abd2288318a35fbf225b93a31d4623e3b8c872
tree9ce193ab0c02b57cb2ef59009d4aafd98c3176df
parent171df6381962b463e5aa8ff936eb3f995a56ce9e
Staging: heci: fix spinlock order mess of device_lock and read_io_lock

In orginal code, the device_lock and read_io_lock is mess order when nested,
which may bring dead lock. This patch unify the spinlock order of device_lock
and read_io_lock. First acquire device_lock, then read_io_lock.

Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/heci/heci_main.c
drivers/staging/heci/io_heci.c