[S390] dasd: fix fixpoint divide exception in define_extent
authorStefan Haberland <stefan.haberland@de.ibm.com>
Tue, 27 Dec 2011 10:27:28 +0000 (11:27 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Tue, 27 Dec 2011 10:27:14 +0000 (11:27 +0100)
commitb38f27e8425a132ed2dc49ffb3741404e81363d8
tree8f1e09bc2bd902ace0307d7a1639db349303829d
parentb206181d636d416fde48c7f493d7ac5d935b57e3
[S390] dasd: fix fixpoint divide exception in define_extent

If an IO request is build on an alias device without prefix enabled
we try to calculate with zero data from the alias device. This
triggers a BUG statement with fixpoint divide exception.
This case is very unlikely and can only happen if the pathgroup is
lost with an alias device already in use.
Prevent the alias device from being used in this case.

Signed-off-by: Stefan Haberland <stefan.haberland@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
drivers/s390/block/dasd_alias.c
drivers/s390/block/dasd_eckd.c