]> git.baikalelectronics.ru Git - kernel.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)
commit524dcb3abd11d7c1535c4da43e89090f93952e29
treea7a496ce7f0f0ae9a417d50acb44fb9fe1229ff9
parentcf106220c46b1a8e3e66c3dba900d2a28f1b1b31
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