diff options
author | Sagi Grimberg <sagi@grimberg.me> | 2016-05-19 15:24:55 +0300 |
---|---|---|
committer | Sagi Grimberg <sagi@grimberg.me> | 2016-08-04 17:43:06 +0300 |
commit | d8f7750a08968b105056328652d2c332bdfa062d (patch) | |
tree | 8932ca6a801f85efffeb7825163e7627c139a978 /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | 45862ebcc4883b1b6bc0701cd15cb2b68b140c5d (diff) | |
download | linux-d8f7750a08968b105056328652d2c332bdfa062d.tar.xz |
nvmet-rdma: Correctly handle RDMA device hot removal
When configuring a device attached listener, we may
see device removal events. In this case we return a
non-zero return code from the cm event handler which
implicitly destroys the cm_id. It is possible that in
the future the user will remove this listener and by
that trigger a second call to rdma_destroy_id on an
already destroyed cm_id -> BUG.
In addition, when a queue bound (active session) cm_id
generates a DEVICE_REMOVAL event we must guarantee all
resources are cleaned up by the time we return from the
event handler.
Introduce nvmet_rdma_device_removal which addresses
(or at least attempts to) both scenarios.
Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions