Michel Lespinasse
d8ed45c5dc
mmap locking API: use coccinelle to convert mmap_sem rwsem call sites
...
This change converts the existing mmap_sem rwsem calls to use the new mmap
locking API instead.
The change is generated using coccinelle with the following rule:
// spatch --sp-file mmap_lock_api.cocci --in-place --include-headers --dir .
@@
expression mm;
@@
(
-init_rwsem
+mmap_init_lock
|
-down_write
+mmap_write_lock
|
-down_write_killable
+mmap_write_lock_killable
|
-down_write_trylock
+mmap_write_trylock
|
-up_write
+mmap_write_unlock
|
-downgrade_write
+mmap_write_downgrade
|
-down_read
+mmap_read_lock
|
-down_read_killable
+mmap_read_lock_killable
|
-down_read_trylock
+mmap_read_trylock
|
-up_read
+mmap_read_unlock
)
-(&mm->mmap_sem)
+(mm)
Signed-off-by: Michel Lespinasse <walken@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Reviewed-by: Daniel Jordan <daniel.m.jordan@oracle.com>
Reviewed-by: Laurent Dufour <ldufour@linux.ibm.com>
Reviewed-by: Vlastimil Babka <vbabka@suse.cz>
Cc: Davidlohr Bueso <dbueso@suse.de>
Cc: David Rientjes <rientjes@google.com>
Cc: Hugh Dickins <hughd@google.com>
Cc: Jason Gunthorpe <jgg@ziepe.ca>
Cc: Jerome Glisse <jglisse@redhat.com>
Cc: John Hubbard <jhubbard@nvidia.com>
Cc: Liam Howlett <Liam.Howlett@oracle.com>
Cc: Matthew Wilcox <willy@infradead.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Ying Han <yinghan@google.com>
Link: http://lkml.kernel.org/r/20200520052908.204642-5-walken@google.com
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2020-06-09 09:39:14 -07:00
..
2020-03-25 11:50:48 +01:00
2020-04-30 16:48:42 -04:00
2019-12-05 08:44:28 +01:00
2020-02-17 10:34:34 +01:00
2020-01-07 12:04:13 -05:00
2020-01-07 12:04:13 -05:00
2019-12-18 16:09:13 -05:00
2019-12-05 08:44:28 +01:00
2019-06-10 22:30:24 +02:00
2020-04-13 12:02:47 -04:00
2019-06-10 22:30:24 +02:00
2019-06-10 22:30:24 +02:00
2017-12-20 12:00:22 -05:00
2020-01-07 12:04:08 -05:00
2019-12-23 15:00:00 -05:00
2017-10-30 14:16:21 +01:00
2019-06-10 22:30:24 +02:00
2019-06-10 22:30:24 +02:00
2019-06-10 22:30:24 +02:00
2019-12-05 08:44:28 +01:00
2019-06-10 22:30:24 +02:00
2019-06-10 22:30:24 +02:00
2019-06-10 22:30:24 +02:00
2019-08-13 09:09:30 +02:00
2019-06-10 22:30:24 +02:00
2019-12-23 14:59:59 -05:00
2019-05-21 10:50:46 +02:00
2019-12-05 08:44:28 +01:00
2019-06-10 22:30:24 +02:00
2020-04-01 14:44:43 -04:00
2018-10-15 16:16:12 -05:00
2019-06-10 22:30:24 +02:00
2019-12-05 08:44:28 +01:00
2019-12-23 15:00:00 -05:00
2019-06-10 22:30:24 +02:00
2020-01-07 12:04:08 -05:00
2019-12-03 16:26:59 -05:00
2019-12-05 08:44:28 +01:00
2019-12-05 08:44:28 +01:00
2019-06-10 22:30:24 +02:00
2019-11-19 10:12:54 -05:00
2019-08-13 09:09:30 +02:00
2019-06-10 22:30:24 +02:00
2019-06-10 22:30:24 +02:00
2019-06-10 22:30:24 +02:00
2018-08-27 11:10:19 -05:00
2020-01-07 12:04:08 -05:00
2019-06-10 22:30:24 +02:00
2017-08-15 14:46:07 -04:00
2019-12-05 08:44:28 +01:00
2019-12-05 08:44:28 +01:00
2019-08-13 09:09:30 +02:00
2020-03-28 22:48:20 +01:00
2019-05-30 11:29:21 -07:00
2019-11-26 14:51:04 -05:00
2019-08-13 09:09:30 +02:00
2020-03-30 09:52:23 -05:00
2019-12-05 08:44:28 +01:00
2020-03-28 22:48:20 +01:00
2020-01-07 12:04:13 -05:00
2020-06-09 09:39:14 -07:00
2019-06-10 22:30:24 +02:00
2020-01-24 17:41:34 +00:00
2020-02-17 10:34:34 +01:00
2019-06-10 22:30:24 +02:00
2020-03-11 16:53:17 -04:00
2020-04-03 17:11:41 +02:00
2019-04-24 12:32:14 +10:00
2019-12-05 08:44:28 +01:00
2020-03-06 14:19:58 +01:00
2019-06-10 22:30:24 +02:00
2019-12-05 08:44:28 +01:00
2020-06-09 09:39:14 -07:00
2019-12-05 08:44:28 +01:00
2019-06-10 22:30:24 +02:00
2019-12-05 08:44:28 +01:00
2020-06-02 15:04:15 -07:00
2020-02-13 13:08:14 +01:00
2020-01-07 12:04:08 -05:00
2019-11-19 10:12:54 -05:00
2019-11-23 19:56:44 -04:00
2020-03-06 14:19:57 +01:00
2019-10-25 11:40:50 +02:00
2019-08-13 09:09:30 +02:00
2020-01-07 12:04:08 -05:00
2019-08-13 09:09:30 +02:00
2019-06-10 22:30:24 +02:00
2019-06-10 22:30:24 +02:00
2019-06-10 22:30:24 +02:00
2019-08-13 09:09:30 +02:00
2019-08-06 08:21:54 +02:00
2019-06-10 22:30:24 +02:00
2019-06-10 22:30:24 +02:00
2020-03-31 15:15:47 +10:00
2019-06-10 22:30:24 +02:00
2019-08-13 09:09:30 +02:00
2020-01-07 12:04:13 -05:00
2020-01-07 12:04:13 -05:00
2019-11-23 19:56:44 -04:00
2019-06-10 22:30:24 +02:00
2019-12-05 08:44:28 +01:00
2019-12-05 08:44:28 +01:00
2019-12-05 08:44:28 +01:00
2019-06-10 22:30:24 +02:00
2019-06-10 22:30:24 +02:00
2019-06-10 22:30:24 +02:00
2019-06-10 22:30:24 +02:00
2019-08-13 09:09:30 +02:00
2019-06-10 22:30:24 +02:00
2019-06-10 22:30:24 +02:00
2019-06-10 22:30:24 +02:00
2019-12-23 14:59:59 -05:00
2019-08-13 09:09:30 +02:00
2020-04-13 12:02:45 -04:00
2019-06-10 22:30:24 +02:00
2019-12-23 14:59:58 -05:00
2019-06-10 22:30:24 +02:00
2019-06-10 22:30:24 +02:00
2019-06-10 22:30:24 +02:00
2019-12-05 08:44:28 +01:00
2019-06-10 22:30:24 +02:00
2019-06-10 22:30:24 +02:00
2019-06-10 22:30:24 +02:00
2019-06-10 22:30:24 +02:00
2019-06-10 22:30:24 +02:00
2019-06-10 22:30:24 +02:00
2019-06-10 22:30:24 +02:00