All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Pranjal Shrivastava <praan@google.com>
Cc: oe-kbuild-all@lists.linux.dev
Subject: Re: [RFC PATCH v1 8/8] nfs: allow P2PDMA pages for O_DIRECT on RDMA mounts
Date: Sat, 10 Oct 2026 21:00:15 +0800	[thread overview]
Message-ID: <202610102028.Yv2iFdar-lkp@intel.com> (raw)
In-Reply-To: <20261006233248.705086-9-praan@google.com>

Hi Pranjal,

[This is a private test report for your RFC patch.]
kernel test robot noticed the following build errors:

[auto build test ERROR on next-20261006]
[cannot apply to linux-review/Pranjal-Shrivastava/nfs-make-nfs_page-pin-aware/20260814-143251 trondmy-nfs/linux-next v7.3-rc6 v7.3-rc5 v7.3-rc4 linus/master v7.3-rc6]
[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/Pranjal-Shrivastava/sunrpc-introduce-XDRBUF_P2PDMA-flag/20261006-233241
base:   next-20261006
patch link:    https://lore.kernel.org/r/20261006233248.705086-9-praan%40google.com
patch subject: [RFC PATCH v1 8/8] nfs: allow P2PDMA pages for O_DIRECT on RDMA mounts
config: nios2-defconfig (https://download.01.org/0day-ci/archive/20261010/202610102028.Yv2iFdar-lkp@intel.com/config)
compiler: nios2-linux-gcc (GCC) 11.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261010/202610102028.Yv2iFdar-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/202610102028.Yv2iFdar-lkp@intel.com/

All errors (new ones prefixed by >>):

   fs/nfs/direct.c: In function 'nfs_direct_extract_pages':
>> fs/nfs/direct.c:171:14: error: implicit declaration of function 'pnfs_enabled_sb' [-Werror=implicit-function-declaration]
     171 |             !pnfs_enabled_sb(server))
         |              ^~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors


vim +/pnfs_enabled_sb +171 fs/nfs/direct.c

   154	
   155	static ssize_t nfs_direct_extract_pages(struct nfs_direct_req *dreq,
   156						struct iov_iter *iter,
   157						size_t size, loff_t *pos,
   158						struct list_head *list)
   159	{
   160		struct nfs_server *server = NFS_SERVER(dreq->inode);
   161		bool pinned = iov_iter_extract_will_pin(iter);
   162		iov_iter_extraction_t flags = 0;
   163		struct page **pagevec = NULL;
   164		ssize_t result, bytes = 0;
   165		int err = 0;
   166		unsigned int npages, i;
   167		size_t pgbase;
   168	
   169		/* Allow P2PDMA pages only on RDMA mounts that do not use pNFS */
   170		if (server->nfs_client->cl_proto == XPRT_TRANSPORT_RDMA &&
 > 171		    !pnfs_enabled_sb(server))
   172			flags = ITER_ALLOW_P2PDMA;
   173	
   174		result = iov_iter_extract_pages(iter, &pagevec, size, ~0U, flags,
   175						&pgbase);
   176		if (result <= 0)
   177			return result;
   178	
   179		npages = (result + pgbase + PAGE_SIZE - 1) >> PAGE_SHIFT;
   180		for (i = 0; i < npages; i++) {
   181			struct nfs_page *req;
   182			unsigned int req_len = min_t(size_t, result - bytes, PAGE_SIZE - pgbase);
   183	
   184			req = nfs_page_create_from_page(dreq->ctx, pagevec[i],
   185							pinned, pgbase, *pos,
   186							req_len);
   187			if (IS_ERR(req)) {
   188				err = PTR_ERR(req);
   189				break;
   190			}
   191	
   192			list_add_tail(&req->wb_list, list);
   193			pgbase = 0;
   194			bytes += req_len;
   195			*pos += req_len;
   196		}
   197	
   198		if (i < npages) {
   199			iov_iter_revert(iter, result - bytes);
   200			nfs_direct_release_pages(pagevec + i, npages - i, pinned);
   201		}
   202	
   203		kvfree(pagevec);
   204		return bytes ? bytes : err;
   205	}
   206	

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

  parent reply	other threads:[~2026-10-10 13:00 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-06 23:32 [RFC PATCH v1 0/8] nfs: PCI P2PDMA for O_DIRECT over RDMA Pranjal Shrivastava
2026-10-06 23:32 ` [RFC PATCH v1 1/8] sunrpc: introduce XDRBUF_P2PDMA flag Pranjal Shrivastava
2026-10-06 23:41   ` sashiko-bot
2026-10-06 23:32 ` [RFC PATCH v1 2/8] sunrpc: fail only the RPC a transport refuses Pranjal Shrivastava
2026-10-06 23:41   ` sashiko-bot
2026-10-06 23:32 ` [RFC PATCH v1 3/8] xprtrdma: move P2PDMA payloads only via chunks Pranjal Shrivastava
2026-10-06 23:47   ` sashiko-bot
2026-10-06 23:32 ` [RFC PATCH v1 4/8] xprtrdma: return -EREMOTEIO on P2PDMA map failure Pranjal Shrivastava
2026-10-06 23:42   ` sashiko-bot
2026-10-12  7:01   ` Leon Romanovsky
2026-10-06 23:32 ` [RFC PATCH v1 5/8] nfs: tag READ/WRITE RPCs carrying P2PDMA pages Pranjal Shrivastava
2026-10-06 23:45   ` sashiko-bot
2026-10-12  7:10   ` Leon Romanovsky
2026-10-06 23:32 ` [RFC PATCH v1 6/8] nfs: refuse P2PDMA pages with krb5i and krb5p Pranjal Shrivastava
2026-10-06 23:46   ` sashiko-bot
2026-10-06 23:32 ` [RFC PATCH v1 7/8] nfs: allow LOCALIO for P2PDMA pages only as aligned direct I/O Pranjal Shrivastava
2026-10-06 23:51   ` sashiko-bot
2026-10-06 23:32 ` [RFC PATCH v1 8/8] nfs: allow P2PDMA pages for O_DIRECT on RDMA mounts Pranjal Shrivastava
2026-10-06 23:42   ` sashiko-bot
2026-10-10 13:00   ` kernel test robot [this message]
2026-10-07 21:20 ` [RFC PATCH v1 0/8] nfs: PCI P2PDMA for O_DIRECT over RDMA Chuck Lever

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=202610102028.Yv2iFdar-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=praan@google.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 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.