projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
47d3067
)
s390/blacklist: Perform subchannel scan only when needed
author
Peter Oberparleiter
<
[email protected]
>
Tue, 26 Nov 2013 14:00:37 +0000
(15:00 +0100)
committer
Martin Schwidefsky
<
[email protected]
>
Mon, 16 Dec 2013 13:37:43 +0000
(14:37 +0100)
Move scheduling of a subchannel scan to those instances where new
devices may actually have become available. This reduces unnecessary
scan work in case devices were added to the blacklist.
Signed-off-by: Peter Oberparleiter <
[email protected]
>
Reviewed-by: Sebastian Ott <
[email protected]
>
Signed-off-by: Martin Schwidefsky <
[email protected]
>
drivers/s390/cio/blacklist.c
patch
|
blob
|
history
diff --git
a/drivers/s390/cio/blacklist.c
b/drivers/s390/cio/blacklist.c
index 77ee4daec206fa1ee12630b82320abfa08d52b54..b3f791b2c1f8994de2287052275fc8853b3b946a 100644
(file)
--- a/
drivers/s390/cio/blacklist.c
+++ b/
drivers/s390/cio/blacklist.c
@@
-260,16
+260,16
@@
static int blacklist_parse_proc_parameters(char *buf)
parm = strsep(&buf, " ");
- if (strcmp("free", parm) == 0)
+ if (strcmp("free", parm) == 0)
{
rc = blacklist_parse_parameters(buf, free, 0);
- else if (strcmp("add", parm) == 0)
+ css_schedule_eval_all_unreg(0);
+ } else if (strcmp("add", parm) == 0)
rc = blacklist_parse_parameters(buf, add, 0);
else if (strcmp("purge", parm) == 0)
return ccw_purge_blacklisted();
else
return -EINVAL;
- css_schedule_eval_all_unreg(0);
return rc;
}