diff options
author | Eli Cohen <eli@mellanox.com> | 2016-06-22 17:27:26 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-08-20 18:09:25 +0200 |
commit | f868cae619b0b6e56afca0d6ee5377d5855f64f1 (patch) | |
tree | 82bfd8d5564e7c4ead77771be616787e9b5705b9 /lib/dump_stack.c | |
parent | a25be0f972d74aa4bd3efe8951eb3c66d605c650 (diff) | |
download | lwn-f868cae619b0b6e56afca0d6ee5377d5855f64f1.tar.gz lwn-f868cae619b0b6e56afca0d6ee5377d5855f64f1.zip |
IB/mlx5: Fix post send fence logic
commit c9b254955b9f8814966f5dabd34c39d0e0a2b437 upstream.
If the caller specified IB_SEND_FENCE in the send flags of the work
request and no previous work request stated that the successive one
should be fenced, the work request would be executed without a fence.
This could result in RDMA read or atomic operations failure due to a MR
being invalidated. Fix this by adding the mlx5 enumeration for fencing
RDMA/atomic operations and fix the logic to apply this.
Fixes: e126ba97dba9 ('mlx5: Add driver for Mellanox Connect-IB adapters')
Signed-off-by: Eli Cohen <eli@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'lib/dump_stack.c')
0 files changed, 0 insertions, 0 deletions