mm: nommu: correct the range of mmap_sem_read_lock in task_mem()
authorlipeifeng <lipeifeng@oppo.com>
Thu, 22 Jun 2023 04:01:52 +0000 (12:01 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 23 Jun 2023 23:59:32 +0000 (16:59 -0700)
commit341d51c8861fe05a8b3ea317f03f26aa0fb30710
treece11bfb747a1dc0c5ad53ec7d6dd141b4cbe8b00
parentfd4aed8d985a3236d0877ff6d0c80ad39d4ce81a
mm: nommu: correct the range of mmap_sem_read_lock in task_mem()

During the seq_printf,the mmap_sem_read_lock protection is not
required.

Link: https://lkml.kernel.org/r/20230622040152.1173-1-lipeifeng@oppo.com
Signed-off-by: lipeifeng <lipeifeng@oppo.com>
Cc: David Hildenbrand <david@redhat.com>
Cc: Liam R. Howlett <Liam.Howlett@oracle.com>
Cc: Matthew Wilcox <willy@infradead.org>
Cc: Vlastimil Babka <vbabka@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/proc/task_nommu.c