diff options
author | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2015-09-14 16:59:27 +0200 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2015-10-14 14:32:22 +0200 |
commit | f58fe336009f451748c1c337f35130a320ef923d (patch) | |
tree | a374f011ddd2cbf4be42ce386eed982ea70dd195 /kernel/resource.c | |
parent | fcd0d1f637e57777fdc742adee6bfbcab5876295 (diff) | |
download | linux-f58fe336009f451748c1c337f35130a320ef923d.tar.bz2 |
s390/zcrypt: use explicit return code for flushed requests
If a AP device is removed while messages are still pending, the requests
are cancelled by calling the message receive function with an error pointer
for the reply. The message type receive handler recognize this and create
a fake hardware error TYPE82_RSP_CODE / REP82_ERROR_MACHINE_FAILURE.
The message with the hardware error then causes a printk and a return
code of -EAGAIN.
Replace the intricate scheme with an explicit return code for this sitation
and avoid the error message.
Reviewd-by: Ingo Tuchscherer <ingo.tuchscherer@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'kernel/resource.c')
0 files changed, 0 insertions, 0 deletions