[S390] cio: fix chsc_chp_vary
The functions called by chsc_chp_vary operate on pointers to channel path ids not channel path links. (This worked by chance since the id is the first member of the link structure) Signed-off-by: Sebastian Ott <sebott@linux.vnet.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
This commit is contained in:
parent
50c8e31f38
commit
3b484ec648
1 changed files with 2 additions and 5 deletions
|
@ -529,10 +529,7 @@ __s390_vary_chpid_on(struct subchannel_id schid, void *data)
|
||||||
int chsc_chp_vary(struct chp_id chpid, int on)
|
int chsc_chp_vary(struct chp_id chpid, int on)
|
||||||
{
|
{
|
||||||
struct channel_path *chp = chpid_to_chp(chpid);
|
struct channel_path *chp = chpid_to_chp(chpid);
|
||||||
struct chp_link link;
|
|
||||||
|
|
||||||
memset(&link, 0, sizeof(struct chp_link));
|
|
||||||
link.chpid = chpid;
|
|
||||||
/* Wait until previous actions have settled. */
|
/* Wait until previous actions have settled. */
|
||||||
css_wait_for_slow_path();
|
css_wait_for_slow_path();
|
||||||
/*
|
/*
|
||||||
|
@ -542,10 +539,10 @@ int chsc_chp_vary(struct chp_id chpid, int on)
|
||||||
/* Try to update the channel path descritor. */
|
/* Try to update the channel path descritor. */
|
||||||
chsc_determine_base_channel_path_desc(chpid, &chp->desc);
|
chsc_determine_base_channel_path_desc(chpid, &chp->desc);
|
||||||
for_each_subchannel_staged(s390_subchannel_vary_chpid_on,
|
for_each_subchannel_staged(s390_subchannel_vary_chpid_on,
|
||||||
__s390_vary_chpid_on, &link);
|
__s390_vary_chpid_on, &chpid);
|
||||||
} else
|
} else
|
||||||
for_each_subchannel_staged(s390_subchannel_vary_chpid_off,
|
for_each_subchannel_staged(s390_subchannel_vary_chpid_off,
|
||||||
NULL, &link);
|
NULL, &chpid);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue