]> git.karo-electronics.de Git - karo-tx-linux.git/commit
s390/dasd: add locking for global_profile access
authorSebastian Ott <sebott@linux.vnet.ibm.com>
Wed, 28 Jan 2015 17:44:17 +0000 (18:44 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Thu, 29 Jan 2015 08:19:27 +0000 (09:19 +0100)
commit8ea55c95c372a7a51fa50cb7c75240bfbe8bd337
treea7a496ce7f0f0ae9a417d50acb44fb9fe1229ff9
parente6d60b368b45b9be3aa068f8e5fa98c3487c9d4e
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>
drivers/s390/block/dasd.c
drivers/s390/block/dasd_int.h
drivers/s390/block/dasd_proc.c