1. 11 5月, 2020 1 次提交
  2. 28 3月, 2020 2 次提交
  3. 27 3月, 2020 4 次提交
  4. 24 11月, 2019 4 次提交
  5. 20 8月, 2019 1 次提交
  6. 08 8月, 2019 3 次提交
  7. 26 7月, 2019 6 次提交
  8. 03 7月, 2019 6 次提交
  9. 02 7月, 2019 1 次提交
  10. 28 6月, 2019 1 次提交
    • J
      mm/hmm: Fix error flows in hmm_invalidate_range_start · 5a136b4a
      Jason Gunthorpe 提交于
      If the trylock on the hmm->mirrors_sem fails the function will return
      without decrementing the notifiers that were previously incremented. Since
      the caller will not call invalidate_range_end() on EAGAIN this will result
      in notifiers becoming permanently incremented and deadlock.
      
      If the sync_cpu_device_pagetables() required blocking the function will
      not return EAGAIN even though the device continues to touch the
      pages. This is a violation of the mmu notifier contract.
      
      Switch, and rename, the ranges_lock to a spin lock so we can reliably
      obtain it without blocking during error unwind.
      
      The error unwind is necessary since the notifiers count must be held
      incremented across the call to sync_cpu_device_pagetables() as we cannot
      allow the range to become marked valid by a parallel
      invalidate_start/end() pair while doing sync_cpu_device_pagetables().
      Signed-off-by: NJason Gunthorpe <jgg@mellanox.com>
      Reviewed-by: NRalph Campbell <rcampbell@nvidia.com>
      Reviewed-by: NChristoph Hellwig <hch@lst.de>
      Tested-by: NPhilip Yang <Philip.Yang@amd.com>
      5a136b4a
  11. 18 6月, 2019 2 次提交
  12. 10 6月, 2019 2 次提交
  13. 07 6月, 2019 3 次提交
  14. 31 5月, 2019 1 次提交
    • T
      treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 157 · c942fddf
      Thomas Gleixner 提交于
      Based on 3 normalized pattern(s):
      
        this program is free software you can redistribute it and or modify
        it under the terms of the gnu general public license as published by
        the free software foundation either version 2 of the license or at
        your option any later version this program is distributed in the
        hope that it will be useful but without any warranty without even
        the implied warranty of merchantability or fitness for a particular
        purpose see the gnu general public license for more details
      
        this program is free software you can redistribute it and or modify
        it under the terms of the gnu general public license as published by
        the free software foundation either version 2 of the license or at
        your option any later version [author] [kishon] [vijay] [abraham]
        [i] [kishon]@[ti] [com] this program is distributed in the hope that
        it will be useful but without any warranty without even the implied
        warranty of merchantability or fitness for a particular purpose see
        the gnu general public license for more details
      
        this program is free software you can redistribute it and or modify
        it under the terms of the gnu general public license as published by
        the free software foundation either version 2 of the license or at
        your option any later version [author] [graeme] [gregory]
        [gg]@[slimlogic] [co] [uk] [author] [kishon] [vijay] [abraham] [i]
        [kishon]@[ti] [com] [based] [on] [twl6030]_[usb] [c] [author] [hema]
        [hk] [hemahk]@[ti] [com] this program is distributed in the hope
        that it will be useful but without any warranty without even the
        implied warranty of merchantability or fitness for a particular
        purpose see the gnu general public license for more details
      
      extracted by the scancode license scanner the SPDX license identifier
      
        GPL-2.0-or-later
      
      has been chosen to replace the boilerplate/reference in 1105 file(s).
      Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
      Reviewed-by: NAllison Randal <allison@lohutok.net>
      Reviewed-by: NRichard Fontana <rfontana@redhat.com>
      Reviewed-by: NKate Stewart <kstewart@linuxfoundation.org>
      Cc: linux-spdx@vger.kernel.org
      Link: https://lkml.kernel.org/r/20190527070033.202006027@linutronix.deSigned-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      c942fddf
  15. 15 5月, 2019 3 次提交