]> git.baikalelectronics.ru Git - kernel.git/commit
lib/flex_proportions.c: remove local_irq_ops in fprop_new_period()
authorwuchi <wuchi.zero@gmail.com>
Sat, 4 Jun 2022 13:15:02 +0000 (21:15 +0800)
committerakpm <akpm@linux-foundation.org>
Fri, 17 Jun 2022 02:58:20 +0000 (19:58 -0700)
commit639cd2e716b8d207e900c861559d2ff236e3637f
tree44c26e747a9826eea28e678713138f7e3fd976df
parent85ae38f89af291d553ee1c51a35c0b172f823751
lib/flex_proportions.c: remove local_irq_ops in fprop_new_period()

commit da82dd30c8e5a4> "lib: Fix possible deadlock in flexible proportion
code" adds the local_irq_ops because percpu_counter_{sum |add} ops'lock
can cause deadlock by interrupts.  Now percpu_counter _{sum|add} ops use
raw_spin_(un)lock_irq*, so revert the commit and resolve the conflict.

Link: https://lkml.kernel.org/r/20220604131502.5190-1-wuchi.zero@gmail.com
Signed-off-by: wuchi <wuchi.zero@gmail.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Cc: Christoph Hellwig <hch@lst.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
lib/flex_proportions.c