]> git.baikalelectronics.ru Git - kernel.git/commit
mmap_lock: change trace and locking order
authorLiam Howlett <liam.howlett@oracle.com>
Thu, 9 Sep 2021 01:10:14 +0000 (18:10 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 9 Sep 2021 01:45:53 +0000 (18:45 -0700)
commit6203fe5f79b162dd1977e3970a034bb84d7e921f
treeacd629fe45aa055fde10ac9455ff0ee31e557cf6
parent12b6413fbcb31c3e260e2fe5e510a6b7e939d180
mmap_lock: change trace and locking order

Print to the trace log before releasing the lock to avoid racing with
other trace log printers of the same lock type.

Link: https://lkml.kernel.org/r/20210903022041.1843024-1-Liam.Howlett@oracle.com
Signed-off-by: Liam R. Howlett <Liam.Howlett@oracle.com>
Suggested-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Reviewed-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Cc: Michel Lespinasse <walken.cr@gmail.com>
Cc: Vlastimil Babka <vbabka@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/mmap_lock.h