]> git.baikalelectronics.ru Git - kernel.git/commit
hugetlbfs: fix hugetlbfs_statfs() locking
authorMina Almasry <almasrymina@google.com>
Tue, 10 May 2022 01:20:50 +0000 (18:20 -0700)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 13 May 2022 14:20:05 +0000 (07:20 -0700)
commite0063f29b930dd4d5054e2fcd9d33fbcdc769f0d
treef6fd5e402a525be61cf2aaf03f3aeb4569498677
parentd1cfa2f22240c30eb693faa85f88bbc7ae9a6232
hugetlbfs: fix hugetlbfs_statfs() locking

After commit 1a1ef70c65fc ("hugetlb: make free_huge_page irq safe"), the
subpool lock should be locked with spin_lock_irq() and all call sites was
modified as such, except for the ones in hugetlbfs_statfs().

Link: https://lkml.kernel.org/r/20220429202207.3045-1-almasrymina@google.com
Fixes: 1a1ef70c65fc ("hugetlb: make free_huge_page irq safe")
Signed-off-by: Mina Almasry <almasrymina@google.com>
Reviewed-by: Mike Kravetz <mike.kravetz@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/hugetlbfs/inode.c