]> git.baikalelectronics.ru Git - kernel.git/commit
s390/qeth: allocate a single cmd on read channel
authorJulian Wiedmann <jwi@linux.ibm.com>
Tue, 11 Jun 2019 16:38:00 +0000 (18:38 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 14 Jun 2019 05:39:32 +0000 (22:39 -0700)
commit39ab43c186d329f5c07a425a01623966ae72d413
tree0de606247851098ecb47f8e2f6293d8d4a9915f3
parent6af32a4655391f09a9e319e774a1890c2be9bdcd
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>
drivers/s390/net/qeth_core.h
drivers/s390/net/qeth_core_main.c
drivers/s390/net/qeth_l2_main.c
drivers/s390/net/qeth_l3_main.c