diff options
author | Sebastian Ott <sebott@linux.vnet.ibm.com> | 2015-04-10 14:34:33 +0200 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2015-04-15 12:23:53 +0200 |
commit | 80ed156a3d12819a8c839f40f5b6996c4aa117a5 (patch) | |
tree | e7cc5c5e155456168ed80b1f0f69205c2d6cc437 /arch/s390/pci/pci.c | |
parent | 6001018ae8c659e624351d2e73b1272bacd68d6a (diff) | |
download | linux-80ed156a3d12819a8c839f40f5b6996c4aa117a5.tar.gz linux-80ed156a3d12819a8c839f40f5b6996c4aa117a5.tar.bz2 linux-80ed156a3d12819a8c839f40f5b6996c4aa117a5.zip |
s390/pci: add locking for fmb access
Function measurement can be toggled at runtime. Make sure that
all access to the fmb is protected via a mutex.
Signed-off-by: Sebastian Ott <sebott@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch/s390/pci/pci.c')
-rw-r--r-- | arch/s390/pci/pci.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/s390/pci/pci.c b/arch/s390/pci/pci.c index 281893864e1b..598f023cf8a6 100644 --- a/arch/s390/pci/pci.c +++ b/arch/s390/pci/pci.c @@ -827,6 +827,7 @@ int zpci_create_device(struct zpci_dev *zdev) if (rc) goto out; + mutex_init(&zdev->lock); if (zdev->state == ZPCI_FN_STATE_CONFIGURED) { rc = zpci_enable_device(zdev); if (rc) |