s390/cio: use device_lock during cmb activation
authorSebastian Ott <sebott@linux.vnet.ibm.com>
Tue, 15 Sep 2015 11:11:42 +0000 (13:11 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Wed, 14 Oct 2015 12:32:02 +0000 (14:32 +0200)
commit1bc6664bdfb949bc69a08113801e7d6acbf6bc3f
tree5426526ca602c9394d3501cf15cf61fa5acc2695
parent279b8f9a0f3ea3399764047d487dfdd8f7bc9795
s390/cio: use device_lock during cmb activation

Hold the device_lock during [de]activation of the channel measurement
block to synchronize concurrent usage of these functions.

Signed-off-by: Sebastian Ott <sebott@linux.vnet.ibm.com>
Reviewed-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/include/asm/cmb.h
drivers/s390/cio/cmf.c
drivers/s390/cio/device.c