]> git.baikalelectronics.ru Git - kernel.git/commit
net/smc: unregister rkeys of unused buffer
authorKarsten Graul <kgraul@linux.ibm.com>
Thu, 22 Nov 2018 09:26:43 +0000 (10:26 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sat, 24 Nov 2018 01:20:33 +0000 (17:20 -0800)
commita8d1aa39dd1f645435036aeaa8f4262bf360b292
tree924ebacf5af37188b4d57a9f4fe7da7db53a9ca8
parent0f527bd098cd5dcede53b4ea38ef89ea0dd1e7a9
net/smc: unregister rkeys of unused buffer

When an rmb is no longer in use by a connection, unregister its rkey at
the remote peer with an LLC DELETE RKEY message. With this change,
unused buffers held in the buffer pool are no longer registered at the
remote peer. They are registered before the buffer is actually used and
unregistered when they are no longer used by a connection.

Signed-off-by: Karsten Graul <kgraul@linux.ibm.com>
Signed-off-by: Ursula Braun <ubraun@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/smc/af_smc.c
net/smc/smc_core.c
net/smc/smc_core.h