Michel Lespinasse
42fc541404
mmap locking API: add mmap_assert_locked() and mmap_assert_write_locked()
...
Add new APIs to assert that mmap_sem is held.
Using this instead of rwsem_is_locked and lockdep_assert_held[_write]
makes the assertions more tolerant of future changes to the lock type.
Signed-off-by: Michel Lespinasse <walken@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Reviewed-by: Vlastimil Babka <vbabka@suse.cz>
Reviewed-by: Daniel Jordan <daniel.m.jordan@oracle.com>
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: Laurent Dufour <ldufour@linux.ibm.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-10-walken@google.com
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2020-06-09 09:39:14 -07:00
..
2020-06-04 19:06:21 -07:00
2020-05-09 16:15:13 -06:00
2019-09-04 07:42:01 -04:00
2019-07-12 12:24:03 -07:00
2019-12-01 12:59:09 -08:00
2020-04-10 15:36:21 -07:00
2017-11-02 11:10:55 +01:00
2020-06-04 19:06:23 -07:00
2017-11-02 11:10:55 +01:00
2020-06-09 09:39:13 -07:00
2020-06-02 10:59:06 -07:00
2020-04-07 10:43:42 -07:00
2020-01-31 10:30:38 -08:00
2020-06-02 10:59:06 -07:00
2019-07-12 11:05:43 -07:00
2020-06-09 09:39:14 -07:00
2020-06-09 09:39:14 -07:00
2020-06-04 19:06:24 -07:00
2020-04-02 09:35:27 -07:00
2020-06-09 09:39:14 -07:00
2019-12-10 10:12:55 +01:00
2020-06-09 09:39:14 -07:00
2020-06-05 12:39:30 -07:00
2020-04-07 10:43:41 -07:00
2020-06-09 09:39:13 -07:00
2019-12-01 12:59:09 -08:00
2020-06-09 09:39:14 -07:00
2020-06-09 09:39:14 -07:00
2019-06-19 17:09:08 +02:00
2020-06-07 17:25:29 -07:00
2020-06-03 20:09:49 -07:00
2020-06-09 09:39:14 -07:00
2019-06-05 17:37:06 +02:00
2020-04-02 09:35:26 -07:00
2020-06-09 09:39:14 -07:00
2020-06-04 19:06:24 -07:00
2019-11-02 12:39:12 -07:00
2020-06-09 09:39:14 -07:00
2020-06-04 19:06:21 -07:00
2020-04-02 09:35:29 -07:00
2020-06-04 19:06:23 -07:00
2020-06-09 09:39:14 -07:00
2019-09-24 15:54:08 -07:00
2020-06-04 19:06:23 -07:00
2020-06-02 13:25:52 -07:00
2020-06-09 09:39:14 -07:00
2020-06-09 09:39:14 -07:00
2019-03-05 21:07:20 -08:00
2020-04-10 15:36:21 -07:00
2017-11-02 11:10:55 +01:00
2020-06-09 09:39:14 -07:00
2020-06-09 09:39:14 -07:00
2020-06-09 09:39:14 -07:00
2020-06-02 10:59:12 -07:00
2020-06-09 09:39:14 -07:00
2017-03-02 08:42:38 +01:00
2020-02-04 03:05:26 +00:00
2020-06-09 09:39:14 -07:00
2017-11-02 11:10:55 +01:00
2020-06-09 09:39:14 -07:00
2020-06-09 09:39:14 -07:00
2020-06-09 09:39:14 -07:00
2020-06-09 09:39:14 -07:00
2020-06-09 09:39:14 -07:00
2020-06-08 11:05:56 -07:00
2020-04-02 09:35:29 -07:00
2020-04-07 10:43:40 -07:00
2020-06-08 11:05:55 -07:00
2020-06-09 09:39:13 -07:00
2020-04-07 10:43:38 -07:00
2020-06-03 20:09:45 -07:00
2019-09-24 15:54:08 -07:00
2020-04-07 10:43:39 -07:00
2020-06-09 09:39:13 -07:00
2020-01-31 10:30:38 -08:00
2020-06-04 19:06:24 -07:00
2020-06-09 09:39:14 -07:00
2019-03-13 12:25:31 -07:00
2019-06-05 17:37:16 +02:00
2020-04-01 10:09:12 -07:00
2019-06-05 17:37:16 +02:00
2020-06-02 10:59:11 -07:00
2020-06-09 09:39:13 -07:00
2020-06-09 09:39:14 -07:00
2020-06-09 09:39:14 -07:00
2020-06-02 10:59:07 -07:00
2020-06-03 20:09:47 -07:00
2019-06-05 17:37:17 +02:00
2020-06-09 09:39:13 -07:00
2020-04-07 10:43:38 -07:00
2020-04-07 10:43:38 -07:00
2020-06-02 10:59:06 -07:00
2020-06-03 20:09:44 -07:00
2020-04-02 09:35:28 -07:00
2020-03-26 14:45:51 +01:00
2020-06-04 19:06:24 -07:00
2020-06-09 09:39:13 -07:00
2020-06-09 09:39:13 -07:00
2020-06-03 20:09:48 -07:00
2020-04-02 09:35:27 -07:00
2020-06-09 09:39:13 -07:00
2020-06-03 20:09:49 -07:00
2020-06-09 09:39:14 -07:00
2019-10-19 06:32:33 -04:00
2019-09-17 15:20:17 -07:00
2020-06-09 09:39:14 -07:00
2020-06-09 09:39:14 -07:00
2020-06-09 09:39:13 -07:00
2020-06-04 19:06:21 -07:00
2020-04-02 09:35:31 -07:00
2020-06-04 19:06:23 -07:00
2020-06-04 19:06:26 -07:00
2020-06-03 20:09:49 -07:00
2020-05-28 11:35:40 -07:00
2020-06-04 19:06:24 -07:00
2019-09-24 15:54:12 -07:00
2020-06-09 09:39:13 -07:00
2020-04-07 10:43:41 -07:00