android_kernel_motorola_sm6225/drivers/s390
Sebastian Ott d99e79ec55 s390/cio: fix pgid reserved check
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.

Cc: stable@vger.kernel.org
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>
2012-12-03 10:43:58 -05:00
..
block s390/dasd: add safe offline interface 2012-11-30 15:40:44 +01:00
char s390/pci: PCI hotplug support via SCLP 2012-11-30 17:47:25 +01:00
cio s390/cio: fix pgid reserved check 2012-12-03 10:43:58 -05:00
crypto s390/zcrypt: msgType50 (RSA-CRT) fix 2012-11-23 11:14:30 +01:00
kvm virtio: support reserved vqs 2012-09-28 15:05:15 +09:30
net qeth: set new mac even if old mac is gone 2012-11-13 14:31:21 -05:00
scsi [SCSI] zfcp: only access zfcp_scsi_dev for valid scsi_device 2012-09-24 12:11:02 +04:00
Makefile