diff options
| author | 2014-06-08 10:00:59 +0300 | |
|---|---|---|
| committer | 2014-07-09 16:58:58 -0700 | |
| commit | 6ef07a9f369742a7b18c77484411cff0bd790291 (patch) | |
| tree | 8210877bc950e9b09a37d65fd78b9fd204e5dc30 /lib/cpu-notifier-error-inject.c | |
| parent | Linux 3.16-rc2 (diff) | |
| download | wireguard-linux-6ef07a9f369742a7b18c77484411cff0bd790291.tar.xz wireguard-linux-6ef07a9f369742a7b18c77484411cff0bd790291.zip | |
mlx5_core: Fix possible race between mr tree insert/delete
In mlx5_core_destroy_mkey(), we must first remove the mr from the
radix tree and then destroy it. Otherwise we might hit a race if the
key was reallocated and we attempted to insert it to the radix tree.
Also handle radix tree insert/delete failures.
Signed-off-by: Sagi Grimberg <sagig@mellanox.com>
Reviewed-by: Eli Cohen <elic@dev.mellanox.co.il>
Signed-off-by: Roland Dreier <roland@purestorage.com>
Diffstat (limited to 'lib/cpu-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions
