]> git.baikalelectronics.ru Git - kernel.git/commit
s390/dasd: prevent prefix I/O error
authorStefan Haberland <sth@linux.vnet.ibm.com>
Thu, 26 Oct 2017 12:37:35 +0000 (14:37 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Tue, 5 Dec 2017 06:51:08 +0000 (07:51 +0100)
commit1300d39fbe5cdd4c99e8b8168943e5862323d692
tree457a7da246551a6cdfcb1100f192dd000a2c9d09
parent8e7bc4a97ddd7e614cfe69cb0e137218cd9ee35c
s390/dasd: prevent prefix I/O error

Prevent that a prefix flag is set based on invalid configuration data.
The validity.verify_base flag should only be set for alias devices.
Usually the unit address type is either one of base, PAV alias or
HyperPAV alias. But in cases where the unit address type is not set or
any other value the validity.verify_base flag might be set as well.
This would lead to follow on errors.
Explicitly check for alias devices and set the validity flag only for
them.

Signed-off-by: Stefan Haberland <sth@linux.vnet.ibm.com>
Reviewed-by: Jan Hoeppner <hoeppner@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
drivers/s390/block/dasd_eckd.c