* mm/zsmalloc.c:352:2-8: preceding lock on line 347
@ 2025-12-21 21:22 kernel test robot
0 siblings, 0 replies; 3+ messages in thread
From: kernel test robot @ 2025-12-21 21:22 UTC (permalink / raw)
To: oe-kbuild; +Cc: lkp, Julia Lawall
BCC: lkp@intel.com
CC: oe-kbuild-all@lists.linux.dev
CC: linux-kernel@vger.kernel.org
TO: Sergey Senozhatsky <senozhatsky@chromium.org>
CC: Andrew Morton <akpm@linux-foundation.org>
CC: Linux Memory Management List <linux-mm@kvack.org>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 9094662f6707d1d4b53d18baba459604e8bb0783
commit: e27af3f9360ee130b7ab0b274088f92146a0855b zsmalloc: sleepable zspage reader-lock
date: 9 months ago
:::::: branch date: 14 hours ago
:::::: commit date: 9 months ago
config: arm64-randconfig-r051-20251221 (https://download.01.org/0day-ci/archive/20251222/202512220524.fii0TsXx-lkp@intel.com/config)
compiler: aarch64-linux-gcc (GCC) 14.3.0
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Reported-by: Julia Lawall <julia.lawall@inria.fr>
| Closes: https://lore.kernel.org/r/202512220524.fii0TsXx-lkp@intel.com/
cocci warnings: (new ones prefixed by >>)
>> mm/zsmalloc.c:352:2-8: preceding lock on line 347
vim +352 mm/zsmalloc.c
e27af3f9360ee1 Sergey Senozhatsky 2025-03-03 342
e27af3f9360ee1 Sergey Senozhatsky 2025-03-03 343 static __must_check bool zspage_write_trylock(struct zspage *zspage)
e27af3f9360ee1 Sergey Senozhatsky 2025-03-03 344 {
e27af3f9360ee1 Sergey Senozhatsky 2025-03-03 345 struct zspage_lock *zsl = &zspage->zsl;
e27af3f9360ee1 Sergey Senozhatsky 2025-03-03 346
e27af3f9360ee1 Sergey Senozhatsky 2025-03-03 @347 spin_lock(&zsl->lock);
e27af3f9360ee1 Sergey Senozhatsky 2025-03-03 348 if (zsl->cnt == ZS_PAGE_UNLOCKED) {
e27af3f9360ee1 Sergey Senozhatsky 2025-03-03 349 zsl->cnt = ZS_PAGE_WRLOCKED;
e27af3f9360ee1 Sergey Senozhatsky 2025-03-03 350 rwsem_acquire(&zsl->dep_map, 0, 1, _RET_IP_);
e27af3f9360ee1 Sergey Senozhatsky 2025-03-03 351 lock_acquired(&zsl->dep_map, _RET_IP_);
e27af3f9360ee1 Sergey Senozhatsky 2025-03-03 @352 return true;
e27af3f9360ee1 Sergey Senozhatsky 2025-03-03 353 }
e27af3f9360ee1 Sergey Senozhatsky 2025-03-03 354
e27af3f9360ee1 Sergey Senozhatsky 2025-03-03 355 spin_unlock(&zsl->lock);
e27af3f9360ee1 Sergey Senozhatsky 2025-03-03 356 return false;
e27af3f9360ee1 Sergey Senozhatsky 2025-03-03 357 }
e27af3f9360ee1 Sergey Senozhatsky 2025-03-03 358
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 3+ messages in thread* mm/zsmalloc.c:352:2-8: preceding lock on line 347
@ 2026-04-03 8:41 kernel test robot
0 siblings, 0 replies; 3+ messages in thread
From: kernel test robot @ 2026-04-03 8:41 UTC (permalink / raw)
To: oe-kbuild; +Cc: lkp, Julia Lawall
BCC: lkp@intel.com
CC: oe-kbuild-all@lists.linux.dev
CC: linux-kernel@vger.kernel.org
TO: Sergey Senozhatsky <senozhatsky@chromium.org>
CC: Andrew Morton <akpm@linux-foundation.org>
CC: Linux Memory Management List <linux-mm@kvack.org>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 9147566d801602c9e7fc7f85e989735735bf38ba
commit: e27af3f9360ee130b7ab0b274088f92146a0855b zsmalloc: sleepable zspage reader-lock
date: 1 year, 1 month ago
:::::: branch date: 2 days ago
:::::: commit date: 1 year, 1 month ago
config: powerpc64-randconfig-r054-20260402 (https://download.01.org/0day-ci/archive/20260402/202604022204.EvOdKOX7-lkp@intel.com/config)
compiler: clang version 23.0.0git (https://github.com/llvm/llvm-project e3cbd9984a78422c3799629eb6b5f7f7818c1a11)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Fixes: e27af3f9360e ("zsmalloc: sleepable zspage reader-lock")
| Reported-by: kernel test robot <lkp@intel.com>
| Reported-by: Julia Lawall <julia.lawall@inria.fr>
| Closes: https://lore.kernel.org/r/202604022204.EvOdKOX7-lkp@intel.com/
cocci warnings: (new ones prefixed by >>)
>> mm/zsmalloc.c:352:2-8: preceding lock on line 347
vim +352 mm/zsmalloc.c
e27af3f9360ee1 Sergey Senozhatsky 2025-03-03 342
e27af3f9360ee1 Sergey Senozhatsky 2025-03-03 343 static __must_check bool zspage_write_trylock(struct zspage *zspage)
e27af3f9360ee1 Sergey Senozhatsky 2025-03-03 344 {
e27af3f9360ee1 Sergey Senozhatsky 2025-03-03 345 struct zspage_lock *zsl = &zspage->zsl;
e27af3f9360ee1 Sergey Senozhatsky 2025-03-03 346
e27af3f9360ee1 Sergey Senozhatsky 2025-03-03 @347 spin_lock(&zsl->lock);
e27af3f9360ee1 Sergey Senozhatsky 2025-03-03 348 if (zsl->cnt == ZS_PAGE_UNLOCKED) {
e27af3f9360ee1 Sergey Senozhatsky 2025-03-03 349 zsl->cnt = ZS_PAGE_WRLOCKED;
e27af3f9360ee1 Sergey Senozhatsky 2025-03-03 350 rwsem_acquire(&zsl->dep_map, 0, 1, _RET_IP_);
e27af3f9360ee1 Sergey Senozhatsky 2025-03-03 351 lock_acquired(&zsl->dep_map, _RET_IP_);
e27af3f9360ee1 Sergey Senozhatsky 2025-03-03 @352 return true;
e27af3f9360ee1 Sergey Senozhatsky 2025-03-03 353 }
e27af3f9360ee1 Sergey Senozhatsky 2025-03-03 354
e27af3f9360ee1 Sergey Senozhatsky 2025-03-03 355 spin_unlock(&zsl->lock);
e27af3f9360ee1 Sergey Senozhatsky 2025-03-03 356 return false;
e27af3f9360ee1 Sergey Senozhatsky 2025-03-03 357 }
e27af3f9360ee1 Sergey Senozhatsky 2025-03-03 358
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 3+ messages in thread* mm/zsmalloc.c:352:2-8: preceding lock on line 347
@ 2025-04-07 13:05 kernel test robot
0 siblings, 0 replies; 3+ messages in thread
From: kernel test robot @ 2025-04-07 13:05 UTC (permalink / raw)
To: oe-kbuild; +Cc: lkp, Julia Lawall
BCC: lkp@intel.com
CC: oe-kbuild-all@lists.linux.dev
CC: linux-kernel@vger.kernel.org
TO: Sergey Senozhatsky <senozhatsky@chromium.org>
CC: Andrew Morton <akpm@linux-foundation.org>
CC: Linux Memory Management List <linux-mm@kvack.org>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 0af2f6be1b4281385b618cb86ad946eded089ac8
commit: e27af3f9360ee130b7ab0b274088f92146a0855b zsmalloc: sleepable zspage reader-lock
date: 3 weeks ago
:::::: branch date: 17 hours ago
:::::: commit date: 3 weeks ago
config: arm64-randconfig-r061-20250407 (https://download.01.org/0day-ci/archive/20250407/202504072032.LG1Y32Pk-lkp@intel.com/config)
compiler: clang version 21.0.0git (https://github.com/llvm/llvm-project 92c93f5286b9ff33f27ff694d2dc33da1c07afdd)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Reported-by: Julia Lawall <julia.lawall@inria.fr>
| Closes: https://lore.kernel.org/r/202504072032.LG1Y32Pk-lkp@intel.com/
cocci warnings: (new ones prefixed by >>)
>> mm/zsmalloc.c:352:2-8: preceding lock on line 347
vim +352 mm/zsmalloc.c
e27af3f9360ee13 Sergey Senozhatsky 2025-03-03 342
e27af3f9360ee13 Sergey Senozhatsky 2025-03-03 343 static __must_check bool zspage_write_trylock(struct zspage *zspage)
e27af3f9360ee13 Sergey Senozhatsky 2025-03-03 344 {
e27af3f9360ee13 Sergey Senozhatsky 2025-03-03 345 struct zspage_lock *zsl = &zspage->zsl;
e27af3f9360ee13 Sergey Senozhatsky 2025-03-03 346
e27af3f9360ee13 Sergey Senozhatsky 2025-03-03 @347 spin_lock(&zsl->lock);
e27af3f9360ee13 Sergey Senozhatsky 2025-03-03 348 if (zsl->cnt == ZS_PAGE_UNLOCKED) {
e27af3f9360ee13 Sergey Senozhatsky 2025-03-03 349 zsl->cnt = ZS_PAGE_WRLOCKED;
e27af3f9360ee13 Sergey Senozhatsky 2025-03-03 350 rwsem_acquire(&zsl->dep_map, 0, 1, _RET_IP_);
e27af3f9360ee13 Sergey Senozhatsky 2025-03-03 351 lock_acquired(&zsl->dep_map, _RET_IP_);
e27af3f9360ee13 Sergey Senozhatsky 2025-03-03 @352 return true;
e27af3f9360ee13 Sergey Senozhatsky 2025-03-03 353 }
e27af3f9360ee13 Sergey Senozhatsky 2025-03-03 354
e27af3f9360ee13 Sergey Senozhatsky 2025-03-03 355 spin_unlock(&zsl->lock);
e27af3f9360ee13 Sergey Senozhatsky 2025-03-03 356 return false;
e27af3f9360ee13 Sergey Senozhatsky 2025-03-03 357 }
e27af3f9360ee13 Sergey Senozhatsky 2025-03-03 358
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-04-03 8:42 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-12-21 21:22 mm/zsmalloc.c:352:2-8: preceding lock on line 347 kernel test robot
-- strict thread matches above, loose matches on Subject: below --
2026-04-03 8:41 kernel test robot
2025-04-07 13:05 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.