aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpiutil.c
diff options
context:
space:
mode:
authorSebastian Ott <[email protected]>2018-06-25 11:23:26 +0200
committerMartin Schwidefsky <[email protected]>2018-07-17 07:27:54 +0200
commit05b217f4c5573f34f6799698f7d4162c702132bc (patch)
tree5678caf88c1ae544b4f3f81f4cdc8332d0ba19b5 /lib/mpi/mpiutil.c
parent71aa11a40d1a1d80196b55d8dd95be2bc4c1649e (diff)
s390/css: validate subchannel prior to allocation
In css_alloc_subchannel we allocate the subchannel and do a validation of the subchannel (to decide if we should look for devices via this subchannel). On a typical LPAR we find lots of subchannels to be invalid (because there is no device attached or the device is blacklisted) leading to lots of useless kmalloc and kfree calls. This patch changes the order to only allocate the subchannels that have been found valid. Signed-off-by: Sebastian Ott <[email protected]> Reviewed-by: Peter Oberparleiter <[email protected]> Signed-off-by: Martin Schwidefsky <[email protected]>
Diffstat (limited to 'lib/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions