]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
[S390] dasd: fix panic caused by alias device offline
authorStefan Weinhuber <wein@de.ibm.com>
Tue, 5 Feb 2008 15:50:47 +0000 (16:50 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Tue, 5 Feb 2008 15:51:00 +0000 (16:51 +0100)
commitfe6b8e76d920b93fd445382aff7ff24082af8874
tree1b7d18d66c30e346c21ffa1b851487f10dd4378e
parent6c5f57c7884a7e0806ae9af86de243321cab4953
[S390] dasd: fix panic caused by alias device offline

When an alias device is set offline while it is in use this may
result in a panic in the cleanup part of the dasd_block_tasklet.
The problem here is that there may exist some ccw requests that were
originally created for the alias device and transferred to the base
device when the alias was set offline. When these request are
cleaned up later, the discipline pointer in the alias device may not
be valid anymore. To fix this use the base device discipline to find
the cleanup function.

Signed-off-by: Stefan Weinhuber <wein@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
drivers/s390/block/dasd.c