aboutsummaryrefslogtreecommitdiff
path: root/lib/string_helpers.c
diff options
context:
space:
mode:
authorSebastian Ott <[email protected]>2012-11-30 16:48:59 +0100
committerMartin Schwidefsky <[email protected]>2012-12-03 10:43:58 -0500
commitd99e79ec5574fc556c988f613ed6175f6de66f4a (patch)
tree50657d29de857267b5fe5cacc5b240d0275dc05c /lib/string_helpers.c
parent1150f25441a7dad818fa4366d01c45c2fef1cbe8 (diff)
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: [email protected] Acked-by: Peter Oberparleiter <[email protected]> Signed-off-by: Sebastian Ott <[email protected]> Signed-off-by: Martin Schwidefsky <[email protected]>
Diffstat (limited to 'lib/string_helpers.c')
0 files changed, 0 insertions, 0 deletions