Commit 750037a
svcrdma: do not unregister device for listeners
On an rdma-capable machine, a start/stop/start and then on a stop of
a knfsd server would lead kref underflow warning because svc_rdma_free
would indiscriminately unregister the rdma device but a listening
transport never calls the rdma_rn_register() thus leading to kref
going down to 0 on the 1st stop of the server and on the 2nd stop
it leads to a problem.
Suggested-by: Chuck Lever <[email protected]>
Fixes: c4de97f ("svcrdma: Handle device removal outside of the CM event handler")
Signed-off-by: Olga Kornievskaia <[email protected]>
Cc: [email protected]
Signed-off-by: Chuck Lever <[email protected]>1 parent 930b64c commit 750037a
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
621 | 621 | | |
622 | 622 | | |
623 | 623 | | |
624 | | - | |
| 624 | + | |
| 625 | + | |
625 | 626 | | |
626 | 627 | | |
627 | 628 | | |
| |||
0 commit comments