1. 11 1月, 2018 2 次提交
    • B
      RDMA/rxe: Fix a race condition related to the QP error state · 6f301e06
      Bart Van Assche 提交于
      The following sequence:
      * Change queue pair state into IB_QPS_ERR.
      * Post a work request on the queue pair.
      
      Triggers the following race condition in the rdma_rxe driver:
      * rxe_qp_error() triggers an asynchronous call of rxe_completer(), the function
        that examines the QP send queue.
      * rxe_post_send() posts a work request on the QP send queue.
      
      If rxe_completer() runs prior to rxe_post_send(), it will drain the send
      queue and the driver will assume no further action is necessary.
      However, once we post the send to the send queue, because the queue is
      in error, no send completion will ever happen and the send will get
      stuck.  In order to process the send, we need to make sure that
      rxe_completer() gets run after a send is posted to a queue pair in an
      error state.  This patch ensures that happens.
      Signed-off-by: NBart Van Assche <bart.vanassche@wdc.com>
      Cc: Moni Shoua <monis@mellanox.com>
      Cc: <stable@vger.kernel.org> # v4.8
      Signed-off-by: NDoug Ledford <dledford@redhat.com>
      6f301e06
    • C
      IB/mlx5: remove redundant assignment of mdev · da005f9f
      Colin Ian King 提交于
      The initial assignment to mdev is redundant as mdev is re-assigned
      later and the first assigned value is never read. Remove this
      redundant assignment.
      
      Cleans up clang warning:
      drivers/infiniband/hw/mlx5/main.c:359:24: warning: Value stored
      to 'mdev' during its initialization is never read
      Signed-off-by: NColin Ian King <colin.king@canonical.com>
      Acked-by: NLeon Romanovsky <leonro@mellanox.com>
      Signed-off-by: NDoug Ledford <dledford@redhat.com>
      da005f9f
  2. 09 1月, 2018 35 次提交
  3. 06 1月, 2018 3 次提交