All of lore.kernel.org
 help / color / mirror / Atom feed
* [alexshi:lru_lock 7/8] mm/swap.c:195:9: sparse: sparse: context imbalance in 'pagevec_lru_move_fn' - different lock contexts for basic block
@ 2019-11-11 20:59 kbuild test robot
  0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2019-11-11 20:59 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 3160 bytes --]

tree:   https://github.com/alexshi/linux.git lru_lock
head:   d03a77d1e054236bd7c3f7457fd146e24402fbb4
commit: 4f788884a80ef855964db17f9d989d1c89c8df19 [7/8] mm/lru: likely enhancement
reproduce:
        # apt-get install sparse
        # sparse version: v0.6.1-29-g781bc5d-dirty
        git checkout 4f788884a80ef855964db17f9d989d1c89c8df19
        make ARCH=x86_64 allmodconfig
        make C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@intel.com>


sparse warnings: (new ones prefixed by >>)

>> mm/swap.c:195:9: sparse: sparse: context imbalance in 'pagevec_lru_move_fn' - different lock contexts for basic block
--
>> mm/vmscan.c:4339:9: sparse: sparse: context imbalance in 'check_move_unevictable_pages' - different lock contexts for basic block
--
>> mm/mlock.c:301:9: sparse: sparse: context imbalance in '__munlock_pagevec' - different lock contexts for basic block
   include/linux/mm.h:1740:21: sparse: sparse: context imbalance in '__munlock_pagevec_fill' - different lock contexts for basic block

vim +/pagevec_lru_move_fn +195 mm/swap.c

18022c5d8627a7 Mel Gorman     2012-07-31  187  
3dd7ae8ec0ef39 Shaohua Li     2011-03-22  188  static void pagevec_lru_move_fn(struct pagevec *pvec,
fa9add641b1b1c Hugh Dickins   2012-05-29  189  	void (*move_fn)(struct page *page, struct lruvec *lruvec, void *arg),
3dd7ae8ec0ef39 Shaohua Li     2011-03-22  190  	void *arg)
902aaed0d983df Hisashi Hifumi 2007-10-16  191  {
902aaed0d983df Hisashi Hifumi 2007-10-16  192  	int i;
72d78985c61081 Alex Shi       2019-10-29  193  	struct lruvec *lruvec = NULL;
902aaed0d983df Hisashi Hifumi 2007-10-16  194  
902aaed0d983df Hisashi Hifumi 2007-10-16 @195  	for (i = 0; i < pagevec_count(pvec); i++) {
902aaed0d983df Hisashi Hifumi 2007-10-16  196  		struct page *page = pvec->pages[i];
902aaed0d983df Hisashi Hifumi 2007-10-16  197  
fef3748b0f0dbf Alex Shi       2019-11-11  198  		lruvec = relock_page_lruvec_irqsave(page, lruvec);
3dd7ae8ec0ef39 Shaohua Li     2011-03-22  199  
fa9add641b1b1c Hugh Dickins   2012-05-29  200  		(*move_fn)(page, lruvec, arg);
902aaed0d983df Hisashi Hifumi 2007-10-16  201  	}
fef3748b0f0dbf Alex Shi       2019-11-11  202  	if (lruvec)
fef3748b0f0dbf Alex Shi       2019-11-11  203  		spin_unlock_irqrestore(&lruvec->lru_lock, lruvec->flags);
72d78985c61081 Alex Shi       2019-10-29  204  
c6f92f9fbe7dbc Mel Gorman     2017-11-15  205  	release_pages(pvec->pages, pvec->nr);
3dd7ae8ec0ef39 Shaohua Li     2011-03-22  206  	pagevec_reinit(pvec);
3dd7ae8ec0ef39 Shaohua Li     2011-03-22  207  }
3dd7ae8ec0ef39 Shaohua Li     2011-03-22  208  

:::::: The code at line 195 was first introduced by commit
:::::: 902aaed0d983dfd459fcb2b678608d4584782200 mm: use pagevec to rotate reclaimable page

:::::: TO: Hisashi Hifumi <hifumi.hisashi@oss.ntt.co.jp>
:::::: CC: Linus Torvalds <torvalds@woody.linux-foundation.org>

---
0-DAY kernel test infrastructure                 Open Source Technology Center
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org Intel Corporation

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-11-11 20:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-11 20:59 [alexshi:lru_lock 7/8] mm/swap.c:195:9: sparse: sparse: context imbalance in 'pagevec_lru_move_fn' - different lock contexts for basic block kbuild test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.