diff options
author | Julian Wiedmann <jwi@linux.ibm.com> | 2019-04-26 09:37:41 +0200 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2019-05-08 15:01:23 +0200 |
commit | a698e1372800b7e5dde2e461c1d3948c2e06032a (patch) | |
tree | 2570ab3dd23f29f1f61a774ac7eb04e17b3aa528 /crypto/wp512.c | |
parent | s390/qdio: use get_buf_state() in debug_get_buf_state() (diff) | |
download | linux-dev-a698e1372800b7e5dde2e461c1d3948c2e06032a.tar.xz linux-dev-a698e1372800b7e5dde2e461c1d3948c2e06032a.zip |
s390/qdio: optimize state inspection of HW-owned SBALs
When get_buf_states() gets called with count > 1, it scans the
corresponding number of SBAL states until it encounters a mismatch.
But when these SBALs are in a HW-owned state, the callers don't actually
care _how many_ such SBALs are on the queue. If we can't process the
first SBAL, we can't process any of the following SBALs either. So when
the first SBAL is HW-owned, skip the scan of the remaining SBALs and
thus save some CPU time.
Signed-off-by: Julian Wiedmann <jwi@linux.ibm.com>
Reviewed-by: Jens Remus <jremus@linux.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'crypto/wp512.c')
0 files changed, 0 insertions, 0 deletions