]> git.baikalelectronics.ru Git - kernel.git/commit
net/smc: delete rkey first before switching to unused
authorUrsula Braun <ubraun@linux.ibm.com>
Mon, 4 Feb 2019 12:44:46 +0000 (13:44 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 4 Feb 2019 17:11:19 +0000 (09:11 -0800)
commit5ec83ba68c6b8b905de8b81cd503e7e17ec69468
treeee3545500dc9cec8e9c2ed70774eafd474d2d1d1
parent6d8b9a9d190d747641e7692d2bebd8dc57f7e3c6
net/smc: delete rkey first before switching to unused

Once RMBs are flagged as unused they are candidates for reuse.
Thus the LLC DELETE RKEY operaton should be made before flagging
the RMB as unused.

Fixes: a8d1aa39dd1f ("net/smc: unregister rkeys of unused buffer")
Signed-off-by: Ursula Braun <ubraun@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/smc/smc_core.c