1. 21 5月, 2020 2 次提交
  2. 18 5月, 2020 1 次提交
  3. 07 5月, 2020 1 次提交
  4. 06 5月, 2020 1 次提交
  5. 03 5月, 2020 3 次提交
  6. 21 2月, 2020 1 次提交
  7. 19 2月, 2020 1 次提交
  8. 17 1月, 2020 3 次提交
  9. 16 1月, 2020 2 次提交
  10. 14 1月, 2020 4 次提交
  11. 08 1月, 2020 4 次提交
  12. 13 12月, 2019 1 次提交
  13. 24 11月, 2019 1 次提交
    • J
      RDMA/odp: Use mmu_interval_notifier_insert() · f25a546e
      Jason Gunthorpe 提交于
      Replace the internal interval tree based mmu notifier with the new common
      mmu_interval_notifier_insert() API. This removes a lot of code and fixes a
      deadlock that can be triggered in ODP:
      
       zap_page_range()
        mmu_notifier_invalidate_range_start()
         [..]
          ib_umem_notifier_invalidate_range_start()
             down_read(&per_mm->umem_rwsem)
        unmap_single_vma()
          [..]
            __split_huge_page_pmd()
              mmu_notifier_invalidate_range_start()
              [..]
                 ib_umem_notifier_invalidate_range_start()
                    down_read(&per_mm->umem_rwsem)   // DEADLOCK
      
              mmu_notifier_invalidate_range_end()
                 up_read(&per_mm->umem_rwsem)
        mmu_notifier_invalidate_range_end()
           up_read(&per_mm->umem_rwsem)
      
      The umem_rwsem is held across the range_start/end as the ODP algorithm for
      invalidate_range_end cannot tolerate changes to the interval
      tree. However, due to the nested invalidation regions the second
      down_read() can deadlock if there are competing writers. The new core code
      provides an alternative scheme to solve this problem.
      
      Fixes: ca748c39 ("RDMA/umem: Get rid of per_mm->notifier_count")
      Link: https://lore.kernel.org/r/20191112202231.3856-6-jgg@ziepe.caTested-by: NArtemy Kovalyov <artemyko@mellanox.com>
      Signed-off-by: NJason Gunthorpe <jgg@mellanox.com>
      f25a546e
  14. 23 11月, 2019 1 次提交
  15. 13 11月, 2019 1 次提交
  16. 07 11月, 2019 2 次提交
  17. 29 10月, 2019 1 次提交
    • B
      RDMA/core: Fix ib_dma_max_seg_size() · ecdfdfdb
      Bart Van Assche 提交于
      If dev->dma_device->params == NULL then the maximum DMA segment size is 64
      KB. See also the dma_get_max_seg_size() implementation. This patch fixes
      the following kernel warning:
      
        DMA-API: infiniband rxe0: mapping sg segment longer than device claims to support [len=126976] [max=65536]
        WARNING: CPU: 4 PID: 4848 at kernel/dma/debug.c:1220 debug_dma_map_sg+0x3d9/0x450
        RIP: 0010:debug_dma_map_sg+0x3d9/0x450
        Call Trace:
         srp_queuecommand+0x626/0x18d0 [ib_srp]
         scsi_queue_rq+0xd02/0x13e0 [scsi_mod]
         __blk_mq_try_issue_directly+0x2b3/0x3f0
         blk_mq_request_issue_directly+0xac/0xf0
         blk_insert_cloned_request+0xdf/0x170
         dm_mq_queue_rq+0x43d/0x830 [dm_mod]
         __blk_mq_try_issue_directly+0x2b3/0x3f0
         blk_mq_request_issue_directly+0xac/0xf0
         blk_mq_try_issue_list_directly+0xb8/0x170
         blk_mq_sched_insert_requests+0x23c/0x3b0
         blk_mq_flush_plug_list+0x529/0x730
         blk_flush_plug_list+0x21f/0x260
         blk_mq_make_request+0x56b/0xf20
         generic_make_request+0x196/0x660
         submit_bio+0xae/0x290
         blkdev_direct_IO+0x822/0x900
         generic_file_direct_write+0x110/0x200
         __generic_file_write_iter+0x124/0x2a0
         blkdev_write_iter+0x168/0x270
         aio_write+0x1c4/0x310
         io_submit_one+0x971/0x1390
         __x64_sys_io_submit+0x12a/0x390
         do_syscall_64+0x6f/0x2e0
         entry_SYSCALL_64_after_hwframe+0x49/0xbe
      
      Link: https://lore.kernel.org/r/20191025225830.257535-2-bvanassche@acm.org
      Cc: <stable@vger.kernel.org>
      Fixes: 0b5cb330 ("RDMA/srp: Increase max_segment_size")
      Signed-off-by: NBart Van Assche <bvanassche@acm.org>
      Reviewed-by: NJason Gunthorpe <jgg@mellanox.com>
      Signed-off-by: NJason Gunthorpe <jgg@mellanox.com>
      ecdfdfdb
  18. 23 10月, 2019 4 次提交
  19. 22 8月, 2019 2 次提交
  20. 21 8月, 2019 1 次提交
  21. 12 8月, 2019 1 次提交
  22. 06 8月, 2019 1 次提交
  23. 05 8月, 2019 1 次提交