diff options
author | Julian Wiedmann | 2019-06-11 18:38:00 +0200 |
---|---|---|
committer | David S. Miller | 2019-06-14 07:39:32 +0200 |
commit | d9b9f40bba7db1147e8069fd3eba711b2247ee67 (patch) | |
tree | 0de606247851098ecb47f8e2f6293d8d4a9915f3 /drivers/s390/net/qeth_l2_main.c | |
parent | s390/qeth: command-chain the IDX sequence (diff) | |
download | kernel-qcow2-linux-d9b9f40bba7db1147e8069fd3eba711b2247ee67.tar.gz kernel-qcow2-linux-d9b9f40bba7db1147e8069fd3eba711b2247ee67.tar.xz kernel-qcow2-linux-d9b9f40bba7db1147e8069fd3eba711b2247ee67.zip |
s390/qeth: allocate a single cmd on read channel
We statically allocate 8 cmd buffers on the read channel, when the only
IO left that's still using them is the long-running READ.
Replace this with a single allocated cmd, that gets restarted whenever
the READ completed.
This introduces refcounting for allocated cmds, so that the READ cmd can
survive the IO completion.
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_l2_main.c')
-rw-r--r-- | drivers/s390/net/qeth_l2_main.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/s390/net/qeth_l2_main.c b/drivers/s390/net/qeth_l2_main.c index e1b25084dcd4..9565ef9747c1 100644 --- a/drivers/s390/net/qeth_l2_main.c +++ b/drivers/s390/net/qeth_l2_main.c @@ -292,7 +292,6 @@ static void qeth_l2_stop_card(struct qeth_card *card) card->state = CARD_STATE_DOWN; } - qeth_clear_cmd_buffers(&card->read); qeth_clear_cmd_buffers(&card->write); flush_workqueue(card->event_wq); card->info.mac_bits &= ~QETH_LAYER2_MAC_REGISTERED; |