From: kernel test robot <lkp@intel.com>
To: lirongqing <lirongqing@baidu.com>,
vgoyal@redhat.com, stefanha@redhat.com, miklos@szeredi.hu,
eperezma@redhat.com, virtualization@lists.linux.dev,
linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org
Cc: oe-kbuild-all@lists.linux.dev, Li RongQing <lirongqing@baidu.com>
Subject: Re: [PATCH] virtio_fs: Remove redundant spinlock in virtio_fs_request_complete()
Date: Sat, 14 Jun 2025 03:51:47 +0800 [thread overview]
Message-ID: <202506140329.g0oJMDcD-lkp@intel.com> (raw)
In-Reply-To: <20250613055051.1873-1-lirongqing@baidu.com>
Hi lirongqing,
kernel test robot noticed the following build warnings:
[auto build test WARNING on mszeredi-fuse/for-next]
[also build test WARNING on linus/master v6.16-rc1 next-20250613]
[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/lirongqing/virtio_fs-Remove-redundant-spinlock-in-virtio_fs_request_complete/20250613-135306
base: https://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/fuse.git for-next
patch link: https://lore.kernel.org/r/20250613055051.1873-1-lirongqing%40baidu.com
patch subject: [PATCH] virtio_fs: Remove redundant spinlock in virtio_fs_request_complete()
config: i386-randconfig-003-20250614 (https://download.01.org/0day-ci/archive/20250614/202506140329.g0oJMDcD-lkp@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250614/202506140329.g0oJMDcD-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/202506140329.g0oJMDcD-lkp@intel.com/
All warnings (new ones prefixed by >>):
fs/fuse/virtio_fs.c: In function 'virtio_fs_request_complete':
>> fs/fuse/virtio_fs.c:765:29: warning: unused variable 'fpq' [-Wunused-variable]
765 | struct fuse_pqueue *fpq = &fsvq->fud->pq;
| ^~~
vim +/fpq +765 fs/fuse/virtio_fs.c
a62a8ef9d97da2 Stefan Hajnoczi 2018-06-12 760
a62a8ef9d97da2 Stefan Hajnoczi 2018-06-12 761 /* Work function for request completion */
bb737bbe48bea9 Vivek Goyal 2020-04-20 762 static void virtio_fs_request_complete(struct fuse_req *req,
bb737bbe48bea9 Vivek Goyal 2020-04-20 763 struct virtio_fs_vq *fsvq)
a62a8ef9d97da2 Stefan Hajnoczi 2018-06-12 764 {
a62a8ef9d97da2 Stefan Hajnoczi 2018-06-12 @765 struct fuse_pqueue *fpq = &fsvq->fud->pq;
a62a8ef9d97da2 Stefan Hajnoczi 2018-06-12 766 struct fuse_args *args;
bb737bbe48bea9 Vivek Goyal 2020-04-20 767 struct fuse_args_pages *ap;
a62a8ef9d97da2 Stefan Hajnoczi 2018-06-12 768 unsigned int len, i, thislen;
29279e1d4284a2 Joanne Koong 2024-10-24 769 struct folio *folio;
a62a8ef9d97da2 Stefan Hajnoczi 2018-06-12 770
a62a8ef9d97da2 Stefan Hajnoczi 2018-06-12 771 /*
a62a8ef9d97da2 Stefan Hajnoczi 2018-06-12 772 * TODO verify that server properly follows FUSE protocol
a62a8ef9d97da2 Stefan Hajnoczi 2018-06-12 773 * (oh.uniq, oh.len)
a62a8ef9d97da2 Stefan Hajnoczi 2018-06-12 774 */
a62a8ef9d97da2 Stefan Hajnoczi 2018-06-12 775 args = req->args;
a62a8ef9d97da2 Stefan Hajnoczi 2018-06-12 776 copy_args_from_argbuf(args, req);
a62a8ef9d97da2 Stefan Hajnoczi 2018-06-12 777
a62a8ef9d97da2 Stefan Hajnoczi 2018-06-12 778 if (args->out_pages && args->page_zeroing) {
a62a8ef9d97da2 Stefan Hajnoczi 2018-06-12 779 len = args->out_args[args->out_numargs - 1].size;
a62a8ef9d97da2 Stefan Hajnoczi 2018-06-12 780 ap = container_of(args, typeof(*ap), args);
29279e1d4284a2 Joanne Koong 2024-10-24 781 for (i = 0; i < ap->num_folios; i++) {
a62a8ef9d97da2 Stefan Hajnoczi 2018-06-12 782 thislen = ap->descs[i].length;
a62a8ef9d97da2 Stefan Hajnoczi 2018-06-12 783 if (len < thislen) {
a62a8ef9d97da2 Stefan Hajnoczi 2018-06-12 784 WARN_ON(ap->descs[i].offset);
68bfb7eb7f7de3 Joanne Koong 2024-10-24 785 folio = ap->folios[i];
68bfb7eb7f7de3 Joanne Koong 2024-10-24 786 folio_zero_segment(folio, len, thislen);
a62a8ef9d97da2 Stefan Hajnoczi 2018-06-12 787 len = 0;
a62a8ef9d97da2 Stefan Hajnoczi 2018-06-12 788 } else {
a62a8ef9d97da2 Stefan Hajnoczi 2018-06-12 789 len -= thislen;
a62a8ef9d97da2 Stefan Hajnoczi 2018-06-12 790 }
a62a8ef9d97da2 Stefan Hajnoczi 2018-06-12 791 }
a62a8ef9d97da2 Stefan Hajnoczi 2018-06-12 792 }
a62a8ef9d97da2 Stefan Hajnoczi 2018-06-12 793
a62a8ef9d97da2 Stefan Hajnoczi 2018-06-12 794 clear_bit(FR_SENT, &req->flags);
a62a8ef9d97da2 Stefan Hajnoczi 2018-06-12 795
8f622e9497bbbd Max Reitz 2020-04-20 796 fuse_request_end(req);
a62a8ef9d97da2 Stefan Hajnoczi 2018-06-12 797 spin_lock(&fsvq->lock);
c17ea009610366 Vivek Goyal 2019-10-15 798 dec_in_flight_req(fsvq);
a62a8ef9d97da2 Stefan Hajnoczi 2018-06-12 799 spin_unlock(&fsvq->lock);
a62a8ef9d97da2 Stefan Hajnoczi 2018-06-12 800 }
bb737bbe48bea9 Vivek Goyal 2020-04-20 801
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next prev parent reply other threads:[~2025-06-13 19:52 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-06-13 5:50 [PATCH] virtio_fs: Remove redundant spinlock in virtio_fs_request_complete() lirongqing
2025-06-13 19:51 ` kernel test robot [this message]
2025-06-15 13:28 ` Stefan Hajnoczi
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=202506140329.g0oJMDcD-lkp@intel.com \
--to=lkp@intel.com \
--cc=eperezma@redhat.com \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=lirongqing@baidu.com \
--cc=miklos@szeredi.hu \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=stefanha@redhat.com \
--cc=vgoyal@redhat.com \
--cc=virtualization@lists.linux.dev \
/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