diff options
author | Julian Wiedmann <jwi@linux.ibm.com> | 2019-02-12 18:33:21 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-02-12 13:14:24 -0500 |
commit | 0951c6babf49d2f2429cbfbea5cf792d427ecc6a (patch) | |
tree | 0b466cff27337777a9d4d9943f6453a7c289770a /drivers/s390/net/qeth_core.h | |
parent | s390/qeth: limit trace to valid data of command request (diff) | |
download | linux-dev-0951c6babf49d2f2429cbfbea5cf792d427ecc6a.tar.xz linux-dev-0951c6babf49d2f2429cbfbea5cf792d427ecc6a.zip |
s390/qeth: simplify reply object handling
Current code enqueues & dequeues a reply object from the waiter list
in various places. In particular, the dequeue & enqueue in
qeth_send_control_data_cb() looks fragile - this can cause
qeth_clear_ipacmd_list() to skip the active object.
Add some helpers, and boil the logic down by giving
qeth_send_control_data() the sole responsibility to add and remove
objects.
qeth_send_control_data_cb() and qeth_clear_ipacmd_list() will now only
notify the reply object to interrupt its wait cycle. This can cause
a slight delay in the removal, but that's no concern.
Signed-off-by: Julian Wiedmann <jwi@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/s390/net/qeth_core.h')
0 files changed, 0 insertions, 0 deletions