]> git.baikalelectronics.ru Git - kernel.git/commit
mm: remove irqsave/restore locking from contexts with irqs enabled
authorJohannes Weiner <hannes@cmpxchg.org>
Thu, 2 Sep 2021 21:53:18 +0000 (14:53 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 3 Sep 2021 16:58:10 +0000 (09:58 -0700)
commit63d3d7fb94ae71cf80e49dbedb9ab3e44ea71b71
treedafce1d1a6e20b3798b6279bff92466cf0d8336c
parentd517974f6b83c3521821bb925ac1ce93b42a4584
mm: remove irqsave/restore locking from contexts with irqs enabled

The page cache deletion paths all have interrupts enabled, so no need to
use irqsafe/irqrestore locking variants.

They used to have irqs disabled by the memcg lock added in commit
3c3c2b3911ab ("memcg: add per cgroup dirty page accounting"), but that has
since been replaced by memcg taking the page lock instead, commit
5d073237219a ("mm: memcontrol: rewrite uncharge AP").

Link: https://lkml.kernel.org/r/20210614211904.14420-1-hannes@cmpxchg.org
Signed-off-by: Johannes Weiner <hannes@cmpxchg.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/filemap.c
mm/truncate.c
mm/vmscan.c