]> git.baikalelectronics.ru Git - kernel.git/commit
s390/cio: use device_lock to synchronize calls to the ccw driver
authorSebastian Ott <sebott@linux.vnet.ibm.com>
Mon, 16 Dec 2013 09:54:13 +0000 (10:54 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Mon, 16 Dec 2013 13:38:02 +0000 (14:38 +0100)
commit6295fbdffcf984f8d172697118c9c9031a79d7ef
treea801b13badc66a26abae11f4ee48823e62f076e0
parent95dd734677903c9a076eece5c99c7978143bc675
s390/cio: use device_lock to synchronize calls to the ccw driver

When calling set_{on,off}line of a ccw device driver we hold the
module reference of the owner. This is pretty useless - we don't
want to prevent module unloading but driver unbinding. Use the
driver core's device_lock instead.

Reviewed-by: Peter Oberparleiter <oberpar@linux.vnet.ibm.com>
Signed-off-by: Sebastian Ott <sebott@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
drivers/s390/cio/device.c