linux-uconsole/drivers/s390
Sebastian Ott 2c77bb3717 s390/cio: fix pgid reserved check
commit d99e79ec55 upstream.

The check to whom a device is reserved is done by checking the path
state of the affected channel paths. If it turns out that one path is
flagged as reserved by someone else the whole device is marked as such.

However the meaning of the RESVD_ELSE bit is that the addressed device
is reserved to a different pathgroup (and not reserved to a different
LPAR). If we do this test on a path which is currently not a member of
the pathgroup we could erroneously mark the device as reserved to
someone else.

To fix this collect the reserved state for all potential members of the
pathgroup and only mark the device as reserved if all of those potential
members have the RESVD_ELSE bit set.

Acked-by: Peter Oberparleiter <peter.oberparleiter@de.ibm.com>
Signed-off-by: Sebastian Ott <sebott@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-01-17 08:43:53 -08:00
..
block compat: fix compile breakage on s390 2012-03-12 10:32:38 -07:00
char compat: Re-add missing asm/compat.h include to fix compile breakage on s390 2012-03-19 08:57:59 -07:00
cio s390/cio: fix pgid reserved check 2013-01-17 08:43:53 -08:00
crypto [S390] ap: skip device registration on type probe failure 2011-05-23 10:24:29 +02:00
kvm [S390] irq: merge irq.c and s390_ext.c 2011-05-26 09:48:24 +02:00
net net: fix NULL dereferences in check_peer_redir() 2012-02-13 11:06:13 -08:00
scsi SCSI: zfcp: only access zfcp_scsi_dev for valid scsi_device 2012-10-13 05:28:09 +09:00
Makefile