* [hying-caritas:mmotm-2021-12-06 129/268] mm/migrate.c:311 __migration_entry_wait() warn: inconsistent returns 'ptl'.
@ 2021-12-11 2:03 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-12-11 2:03 UTC (permalink / raw)
To: kbuild
[-- Attachment #1: Type: text/plain, Size: 3661 bytes --]
CC: kbuild-all(a)lists.01.org
CC: linux-kernel(a)vger.kernel.org
TO: Alistair Popple <apopple@nvidia.com>
CC: Huang Ying <ying.huang@intel.com>
CC: Andrew Morton <akpm@linux-foundation.org>
CC: Linux Memory Management List <linux-mm@kvack.org>
tree: https://github.com/hying-caritas/linux.git mmotm-2021-12-06
head: a57b74d47d00793cb27918be5147ede2ece3a37b
commit: 3c4d0562835e755206ada3026d28b0b6b108fa78 [129/268] mm/migrate.c: rework migration_entry_wait() to not take a pageref
:::::: branch date: 2 days ago
:::::: commit date: 2 days ago
config: i386-randconfig-m021-20211209 (https://download.01.org/0day-ci/archive/20211211/202112110943.Fa2Qkr18-lkp(a)intel.com/config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
smatch warnings:
mm/migrate.c:311 __migration_entry_wait() warn: inconsistent returns 'ptl'.
vim +/ptl +311 mm/migrate.c
04e62a29bf157c Christoph Lameter 2006-06-23 283
0697212a411c1d Christoph Lameter 2006-06-23 284 /*
0697212a411c1d Christoph Lameter 2006-06-23 285 * Something used the pte of a page under migration. We need to
0697212a411c1d Christoph Lameter 2006-06-23 286 * get to the page and wait until migration is finished.
0697212a411c1d Christoph Lameter 2006-06-23 287 * When we return from this function the fault will be retried.
0697212a411c1d Christoph Lameter 2006-06-23 288 */
e66f17ff71772b Naoya Horiguchi 2015-02-11 289 void __migration_entry_wait(struct mm_struct *mm, pte_t *ptep,
30dad30922ccc7 Naoya Horiguchi 2013-06-12 290 spinlock_t *ptl)
0697212a411c1d Christoph Lameter 2006-06-23 291 {
30dad30922ccc7 Naoya Horiguchi 2013-06-12 292 pte_t pte;
0697212a411c1d Christoph Lameter 2006-06-23 293 swp_entry_t entry;
0697212a411c1d Christoph Lameter 2006-06-23 294 struct page *page;
0697212a411c1d Christoph Lameter 2006-06-23 295
30dad30922ccc7 Naoya Horiguchi 2013-06-12 296 spin_lock(ptl);
0697212a411c1d Christoph Lameter 2006-06-23 297 pte = *ptep;
0697212a411c1d Christoph Lameter 2006-06-23 298 if (!is_swap_pte(pte))
0697212a411c1d Christoph Lameter 2006-06-23 299 goto out;
0697212a411c1d Christoph Lameter 2006-06-23 300
0697212a411c1d Christoph Lameter 2006-06-23 301 entry = pte_to_swp_entry(pte);
0697212a411c1d Christoph Lameter 2006-06-23 302 if (!is_migration_entry(entry))
0697212a411c1d Christoph Lameter 2006-06-23 303 goto out;
0697212a411c1d Christoph Lameter 2006-06-23 304
af5cdaf82238fb Alistair Popple 2021-06-30 305 page = pfn_swap_entry_to_page(entry);
ffc90cbb2970ab Xu Yu 2021-06-15 306 page = compound_head(page);
0697212a411c1d Christoph Lameter 2006-06-23 307
3c4d0562835e75 Alistair Popple 2021-12-09 308 migration_entry_wait_on_locked(page_folio(page), ptep, ptl);
0697212a411c1d Christoph Lameter 2006-06-23 309 return;
0697212a411c1d Christoph Lameter 2006-06-23 310 out:
0697212a411c1d Christoph Lameter 2006-06-23 @311 pte_unmap_unlock(ptep, ptl);
0697212a411c1d Christoph Lameter 2006-06-23 312 }
0697212a411c1d Christoph Lameter 2006-06-23 313
:::::: The code at line 311 was first introduced by commit
:::::: 0697212a411c1dae03c27845f2de2f3adb32c331 [PATCH] Swapless page migration: add R/W migration entries
:::::: TO: Christoph Lameter <clameter@sgi.com>
:::::: CC: Linus Torvalds <torvalds@g5.osdl.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-12-11 2:03 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-12-11 2:03 [hying-caritas:mmotm-2021-12-06 129/268] mm/migrate.c:311 __migration_entry_wait() warn: inconsistent returns 'ptl' kernel 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.