From: kernel test robot <lkp@intel.com>
To: Alessio Attilio <alessio.attilio.dev@gmail.com>, aahringo@redhat.com
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
teigland@redhat.com, gfs2@lists.linux.dev,
linux-kernel@vger.kernel.org,
Alessio Attilio <alessio.attilio@engineer.com>
Subject: Re: [PATCH] * dlm: improve lock management and concurrency control
Date: Thu, 11 Sep 2025 22:20:08 +0800 [thread overview]
Message-ID: <202509112216.Jvy0G9Jd-lkp@intel.com> (raw)
In-Reply-To: <20250910171706.173976-1-alessio.attilio.dev@gmail.com>
Hi Alessio,
kernel test robot noticed the following build errors:
[auto build test ERROR on teigland-dlm/next]
[also build test ERROR on linus/master v6.17-rc5 next-20250911]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Alessio-Attilio/dlm-improve-lock-management-and-concurrency-control/20250911-012449
base: https://git.kernel.org/pub/scm/linux/kernel/git/teigland/linux-dlm.git next
patch link: https://lore.kernel.org/r/20250910171706.173976-1-alessio.attilio.dev%40gmail.com
patch subject: [PATCH] * dlm: improve lock management and concurrency control
config: hexagon-randconfig-001-20250911 (https://download.01.org/0day-ci/archive/20250911/202509112216.Jvy0G9Jd-lkp@intel.com/config)
compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250911/202509112216.Jvy0G9Jd-lkp@intel.com/reproduce)
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>
| Closes: https://lore.kernel.org/oe-kbuild-all/202509112216.Jvy0G9Jd-lkp@intel.com/
All errors (new ones prefixed by >>):
>> fs/dlm/lock.c:6181:32: error: use of undeclared identifier 'safe'
6181 | list_for_each_entry_safe(lkb, safe, &proc->unlocking, lkb_ownqueue) {
| ^
>> fs/dlm/lock.c:6181:32: error: use of undeclared identifier 'safe'
>> fs/dlm/lock.c:6181:32: error: use of undeclared identifier 'safe'
>> fs/dlm/lock.c:6181:32: error: use of undeclared identifier 'safe'
>> fs/dlm/lock.c:6181:32: error: use of undeclared identifier 'safe'
>> fs/dlm/lock.c:6181:32: error: use of undeclared identifier 'safe'
>> fs/dlm/lock.c:6181:32: error: use of undeclared identifier 'safe'
>> fs/dlm/lock.c:6189:27: error: use of undeclared identifier 'cb'
6189 | list_for_each_entry_safe(cb, cb_safe, &proc->asts, list) {
| ^
>> fs/dlm/lock.c:6189:27: error: use of undeclared identifier 'cb'
>> fs/dlm/lock.c:6189:27: error: use of undeclared identifier 'cb'
>> fs/dlm/lock.c:6189:27: error: use of undeclared identifier 'cb'
>> fs/dlm/lock.c:6189:27: error: use of undeclared identifier 'cb'
>> fs/dlm/lock.c:6189:27: error: use of undeclared identifier 'cb'
>> fs/dlm/lock.c:6189:27: error: use of undeclared identifier 'cb'
>> fs/dlm/lock.c:6189:31: error: use of undeclared identifier 'cb_safe'
6189 | list_for_each_entry_safe(cb, cb_safe, &proc->asts, list) {
| ^
>> fs/dlm/lock.c:6189:27: error: use of undeclared identifier 'cb'
6189 | list_for_each_entry_safe(cb, cb_safe, &proc->asts, list) {
| ^
>> fs/dlm/lock.c:6189:31: error: use of undeclared identifier 'cb_safe'
6189 | list_for_each_entry_safe(cb, cb_safe, &proc->asts, list) {
| ^
>> fs/dlm/lock.c:6189:31: error: use of undeclared identifier 'cb_safe'
>> fs/dlm/lock.c:6189:31: error: use of undeclared identifier 'cb_safe'
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
vim +/safe +6181 fs/dlm/lock.c
597d0cae0f99f6 David Teigland 2006-07-12 6148
cc9f8fbfb34e86 Alessio Attilio 2025-09-10 6149 static void clean_proc_locks(struct dlm_ls *ls, struct dlm_user_proc *proc)
ef0c2bb05f40f9 David Teigland 2007-03-28 6150 {
cc9f8fbfb34e86 Alessio Attilio 2025-09-10 6151 struct dlm_lkb *lkb;
ef0c2bb05f40f9 David Teigland 2007-03-28 6152
cc9f8fbfb34e86 Alessio Attilio 2025-09-10 6153 dlm_lock_recovery(ls);
ef0c2bb05f40f9 David Teigland 2007-03-28 6154
cc9f8fbfb34e86 Alessio Attilio 2025-09-10 6155 while (1) {
cc9f8fbfb34e86 Alessio Attilio 2025-09-10 6156 lkb = NULL;
cc9f8fbfb34e86 Alessio Attilio 2025-09-10 6157 spin_lock_bh(&proc->locks_spin);
cc9f8fbfb34e86 Alessio Attilio 2025-09-10 6158 if (!list_empty(&proc->locks)) {
cc9f8fbfb34e86 Alessio Attilio 2025-09-10 6159 lkb = list_entry(proc->locks.next, struct dlm_lkb,
cc9f8fbfb34e86 Alessio Attilio 2025-09-10 6160 lkb_ownqueue);
ef0c2bb05f40f9 David Teigland 2007-03-28 6161 list_del_init(&lkb->lkb_ownqueue);
ef0c2bb05f40f9 David Teigland 2007-03-28 6162 }
cc9f8fbfb34e86 Alessio Attilio 2025-09-10 6163 spin_unlock_bh(&proc->locks_spin);
ef0c2bb05f40f9 David Teigland 2007-03-28 6164
ef0c2bb05f40f9 David Teigland 2007-03-28 6165 if (!lkb)
ef0c2bb05f40f9 David Teigland 2007-03-28 6166 break;
cc9f8fbfb34e86 Alessio Attilio 2025-09-10 6167
cc9f8fbfb34e86 Alessio Attilio 2025-09-10 6168 if (lkb->lkb_exflags & DLM_LKF_PERSISTENT) {
cc9f8fbfb34e86 Alessio Attilio 2025-09-10 6169 set_bit(DLM_DFL_ORPHAN_BIT, &lkb->lkb_dflags);
597d0cae0f99f6 David Teigland 2006-07-12 6170 orphan_proc_lock(ls, lkb);
cc9f8fbfb34e86 Alessio Attilio 2025-09-10 6171 } else {
cc9f8fbfb34e86 Alessio Attilio 2025-09-10 6172 set_bit(DLM_IFL_DEAD_BIT, &lkb->lkb_iflags);
597d0cae0f99f6 David Teigland 2006-07-12 6173 unlock_proc_lock(ls, lkb);
cc9f8fbfb34e86 Alessio Attilio 2025-09-10 6174 }
597d0cae0f99f6 David Teigland 2006-07-12 6175
597d0cae0f99f6 David Teigland 2006-07-12 6176 dlm_put_lkb(lkb);
597d0cae0f99f6 David Teigland 2006-07-12 6177 }
a1bc86e6bddd34 David Teigland 2007-01-15 6178
cc9f8fbfb34e86 Alessio Attilio 2025-09-10 6179 spin_lock_bh(&proc->locks_spin);
a1bc86e6bddd34 David Teigland 2007-01-15 6180 /* in-progress unlocks */
a1bc86e6bddd34 David Teigland 2007-01-15 @6181 list_for_each_entry_safe(lkb, safe, &proc->unlocking, lkb_ownqueue) {
a1bc86e6bddd34 David Teigland 2007-01-15 6182 list_del_init(&lkb->lkb_ownqueue);
e1af8728f600f6 Alexander Aring 2023-03-06 6183 set_bit(DLM_IFL_DEAD_BIT, &lkb->lkb_iflags);
a1bc86e6bddd34 David Teigland 2007-01-15 6184 dlm_put_lkb(lkb);
a1bc86e6bddd34 David Teigland 2007-01-15 6185 }
cc9f8fbfb34e86 Alessio Attilio 2025-09-10 6186 spin_unlock_bh(&proc->locks_spin);
a1bc86e6bddd34 David Teigland 2007-01-15 6187
cc9f8fbfb34e86 Alessio Attilio 2025-09-10 6188 spin_lock_bh(&proc->asts_spin);
986ae3c2a8dfc1 Alexander Aring 2024-03-28 @6189 list_for_each_entry_safe(cb, cb_safe, &proc->asts, list) {
986ae3c2a8dfc1 Alexander Aring 2024-03-28 6190 list_del(&cb->list);
2bec1bbd55cf96 Alexander Aring 2024-03-28 6191 dlm_free_cb(cb);
a1bc86e6bddd34 David Teigland 2007-01-15 6192 }
cc9f8fbfb34e86 Alessio Attilio 2025-09-10 6193 spin_unlock_bh(&proc->asts_spin);
a1bc86e6bddd34 David Teigland 2007-01-15 6194
85e86edf951a8a David Teigland 2007-05-18 6195 dlm_unlock_recovery(ls);
597d0cae0f99f6 David Teigland 2006-07-12 6196 }
a1bc86e6bddd34 David Teigland 2007-01-15 6197
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next prev parent reply other threads:[~2025-09-11 14:20 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-09-10 17:17 [PATCH] * dlm: improve lock management and concurrency control Alessio Attilio
2025-09-11 14:20 ` kernel test robot [this message]
2025-09-11 14:38 ` Alexander Aring
2025-09-11 14:52 ` kernel test robot
-- strict thread matches above, loose matches on Subject: below --
2025-09-05 16:05 [PATCH] " Alessio Attilio
2025-09-06 11:04 ` kernel test robot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202509112216.Jvy0G9Jd-lkp@intel.com \
--to=lkp@intel.com \
--cc=aahringo@redhat.com \
--cc=alessio.attilio.dev@gmail.com \
--cc=alessio.attilio@engineer.com \
--cc=gfs2@lists.linux.dev \
--cc=linux-kernel@vger.kernel.org \
--cc=llvm@lists.linux.dev \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=teigland@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox