s390/cio: ensure consistent measurement state
authorSebastian Ott <sebott@linux.vnet.ibm.com>
Mon, 25 Jan 2016 09:31:33 +0000 (10:31 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Tue, 26 Jan 2016 11:47:41 +0000 (12:47 +0100)
commit61f0bfcf8020f02eb09adaef96745d1c1d1b3623
treef5e6630a4281f738b2d371f87fad6eb8cb682bfc
parent0d9bfe9123cfde59bf5c2e375b59d2a7d5061c4c
s390/cio: ensure consistent measurement state

Make sure that in all cases where we could not obtain measurement
characteristics the associated fields are set to invalid values.

Note: without this change the "shared" capability of a channel path
for which we could not obtain the measurement characteristics was
incorrectly displayed as 0 (not shared). We will now correctly
report "unknown" in this case.

Signed-off-by: Sebastian Ott <sebott@linux.vnet.ibm.com>
Reviewed-by: Peter Oberparleiter <oberpar@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
drivers/s390/cio/chp.c
drivers/s390/cio/chsc.c