diff options
author | Sebastian Ott <sebott@linux.vnet.ibm.com> | 2015-01-28 18:44:17 +0100 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2015-01-29 09:19:27 +0100 |
commit | 8ea55c95c372a7a51fa50cb7c75240bfbe8bd337 (patch) | |
tree | a7a496ce7f0f0ae9a417d50acb44fb9fe1229ff9 /drivers/s390/block/dasd_int.h | |
parent | e6d60b368b45b9be3aa068f8e5fa98c3487c9d4e (diff) | |
download | op-kernel-dev-8ea55c95c372a7a51fa50cb7c75240bfbe8bd337.zip op-kernel-dev-8ea55c95c372a7a51fa50cb7c75240bfbe8bd337.tar.gz |
s390/dasd: add locking for global_profile access
Access to DASDs global statistics is done without locking which
can lead to inconsistent data. Add locking to fix this. Also move
the relevant structs in a global dasd_profile struct.
Signed-off-by: Sebastian Ott <sebott@linux.vnet.ibm.com>
Reviewed-by: Stefan Haberland <stefan.haberland@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'drivers/s390/block/dasd_int.h')
-rw-r--r-- | drivers/s390/block/dasd_int.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/s390/block/dasd_int.h b/drivers/s390/block/dasd_int.h index 8b5d410..91731fa 100644 --- a/drivers/s390/block/dasd_int.h +++ b/drivers/s390/block/dasd_int.h @@ -651,7 +651,7 @@ dasd_check_blocksize(int bsize) #define DASD_PROFILE_GLOBAL_ONLY 2 extern debug_info_t *dasd_debug_area; -extern struct dasd_profile_info dasd_global_profile_data; +extern struct dasd_profile dasd_global_profile; extern unsigned int dasd_global_profile_level; extern const struct block_device_operations dasd_device_operations; |