dma-reservations-use-the-new-mmap-locking-api.patch removed from -mm tree
The patch titled
Subject: DMA reservations: use the new mmap locking API
has been removed from the -mm tree. Its filename was
dma-reservations-use-the-new-mmap-locking-api.patch
This patch was dropped because it was merged into mainline or a subsystem tree
------------------------------------------------------
From: Michel Lespinasse <[email protected]>
Subject: DMA reservations: use the new mmap locking API
This use is converted manually ahead of the next patch in the series, as it requires including a new header which the automated conversion would miss.
Signed-off-by Michel Lespinasse <[email protected]>
Reviewed-by Daniel Jordan <[email protected]>
Reviewed-by Laurent Dufour <[email protected]>
Reviewed-by Vlastimil Babka <[email protected]>
Cc Davidlohr Bueso <[email protected]>
Cc David Rientjes <[email protected]>
Cc Hugh Dickins <[email protected]>
Cc Jason Gunthorpe <[email protected]>
Cc Jerome Glisse <[email protected]>
Cc John Hubbard <[email protected]>
Cc Liam Howlett <[email protected]>
Cc Matthew Wilcox <[email protected]>
Cc Peter Zijlstra <[email protected]>
Cc Ying Han <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
drivers/dma-buf/dma-resv.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
drivers/dma-buf/dma-resv.c renamed from drivers/dma-buf/dma-resv.c~dma-reservations-use-the-new-mmap-locking-api +3 -2
@@ -34,6 +34,7 @@#include <linux/dma-resv.h> #include <linux/export.h> +#include <linux/mm.h> #include <linux/sched/mm.h> /**
@@ -109,7 +110,7 @@ static int __init dma_resv_lockdep(void)dma_resv_init (&obj); -down_read (&mm->mmap_sem); +mmap_read_lock (mm);ww_acquire_init (&ctx, &reservation_ww_class); ret =dma_resv_lock (&obj, &ctx);if (ret == -EDEADLK )
@@ -118,7 +119,7 @@ static int __init dma_resv_lockdep(void)fs_reclaim_release (GFP_KERNEL );ww_mutex_unlock (&obj.lock);ww_acquire_fini (&ctx); -up_read (&mm->mmap_sem); +mmap_read_unlock (mm);mmput (mm);
_
Patches currently in -mm which might be from [email protected] are