CC: [email protected] CC: Linux Memory Management List <[email protected]> TO: "Matthew Wilcox (Oracle)" <[email protected]> CC: Christoph Hellwig <[email protected]>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: 90d856e71443a2fcacca8e7539bac44d9cb3f7ab commit: 754fb2e00a777b98a26bb9f4077928ca05ec69d5 [2673/3296] mm/memcg: Add folio_memcg_lock() and folio_memcg_unlock() :::::: branch date: 2 days ago :::::: commit date: 4 days ago config: x86_64-randconfig-m001-20210724 (attached as .config) compiler: gcc-10 (Ubuntu 10.3.0-1ubuntu1~20.04) 10.3.0 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <[email protected]> Reported-by: Dan Carpenter <[email protected]> smatch warnings: mm/memcontrol.c:2018 folio_memcg_lock() warn: inconsistent returns 'flags'. vim +/flags +2018 mm/memcontrol.c 20ad50d6784026 Alex Shi 2020-12-15 2001 bdcbb659fe630f Qiang Huang 2014-06-04 2002 if (atomic_read(&memcg->moving_account) <= 0) 1c824a680b1b67 Johannes Weiner 2021-04-29 2003 return; 89c06bd52fb9ff KAMEZAWA Hiroyuki 2012-03-21 2004 6de226191d12fc Johannes Weiner 2015-02-11 2005 spin_lock_irqsave(&memcg->move_lock, flags); 754fb2e00a777b Matthew Wilcox (Oracle 2021-06-28 2006) if (memcg != folio_memcg(folio)) { 6de226191d12fc Johannes Weiner 2015-02-11 2007 spin_unlock_irqrestore(&memcg->move_lock, flags); 89c06bd52fb9ff KAMEZAWA Hiroyuki 2012-03-21 2008 goto again; 89c06bd52fb9ff KAMEZAWA Hiroyuki 2012-03-21 2009 } 6de226191d12fc Johannes Weiner 2015-02-11 2010 6de226191d12fc Johannes Weiner 2015-02-11 2011 /* 1c824a680b1b67 Johannes Weiner 2021-04-29 2012 * When charge migration first begins, we can have multiple 1c824a680b1b67 Johannes Weiner 2021-04-29 2013 * critical sections holding the fast-path RCU lock and one 1c824a680b1b67 Johannes Weiner 2021-04-29 2014 * holding the slowpath move_lock. Track the task who has the 1c824a680b1b67 Johannes Weiner 2021-04-29 2015 * move_lock for unlock_page_memcg(). 6de226191d12fc Johannes Weiner 2015-02-11 2016 */ 6de226191d12fc Johannes Weiner 2015-02-11 2017 memcg->move_lock_task = current; 6de226191d12fc Johannes Weiner 2015-02-11 @2018 memcg->move_lock_flags = flags; 89c06bd52fb9ff KAMEZAWA Hiroyuki 2012-03-21 2019 } 754fb2e00a777b Matthew Wilcox (Oracle 2021-06-28 2020) EXPORT_SYMBOL(folio_memcg_lock); 754fb2e00a777b Matthew Wilcox (Oracle 2021-06-28 2021) :::::: The code at line 2018 was first introduced by commit :::::: 6de226191d12fce30331ebf024ca3ed24834f0ee mm: memcontrol: track move_lock state internally :::::: TO: Johannes Weiner <[email protected]> :::::: CC: Linus Torvalds <[email protected]> --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/[email protected]
.config.gz
Description: application/gzip
_______________________________________________ kbuild mailing list -- [email protected] To unsubscribe send an email to [email protected]
