diff options
author | Sebastian Ott <sebott@linux.vnet.ibm.com> | 2008-12-25 07:39:15 -0500 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2008-12-25 07:39:11 -0500 |
commit | d36f0c66389eb5e4dbd9b095eea252230ba3273e (patch) | |
tree | c6c8e470455544d6f7472b86d8b2f97741257c90 /drivers/s390/cio | |
parent | f444cc0e52523560a8dfc12f5374e5d5ecf5375b (diff) |
[S390] cio: use pim to check for multipath.
To check if multipath is available we count the bits set in lpm,
which could change over time (via configure [on|off] of a path).
The following patch uses the pim (which is persistent) for this
decision.
Signed-off-by: Sebastian Ott <sebott@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'drivers/s390/cio')
-rw-r--r-- | drivers/s390/cio/device.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/s390/cio/device.c b/drivers/s390/cio/device.c index 6d714cf55064..23d5752349b5 100644 --- a/drivers/s390/cio/device.c +++ b/drivers/s390/cio/device.c | |||
@@ -1174,7 +1174,8 @@ void io_subchannel_init_config(struct subchannel *sch) | |||
1174 | { | 1174 | { |
1175 | memset(&sch->config, 0, sizeof(sch->config)); | 1175 | memset(&sch->config, 0, sizeof(sch->config)); |
1176 | sch->config.csense = 1; | 1176 | sch->config.csense = 1; |
1177 | if ((sch->lpm & (sch->lpm - 1)) != 0) | 1177 | /* Use subchannel mp mode when there is more than 1 installed CHPID. */ |
1178 | if ((sch->schib.pmcw.pim & (sch->schib.pmcw.pim - 1)) != 0) | ||
1178 | sch->config.mp = 1; | 1179 | sch->config.mp = 1; |
1179 | } | 1180 | } |
1180 | 1181 | ||