From: Greg Louis <glouis@dynamicro.on.ca>
To: Linux Kernel <linux-kernel@vger.kernel.org>
Subject: Re: Linux 2.4.20-pre2-ac1
Date: Wed, 14 Aug 2002 16:29:24 -0400 [thread overview]
Message-ID: <20020814162924.6a4203ef.glouis@dynamicro.on.ca> (raw)
In-Reply-To: <1029346932.2045.128.camel@spc9.esa.lanl.gov>
On 14 Aug 2002 11:42:11 -0600,
Steven Cole <elenstev@mesatop.com> wrote:
> On Wed, 2002-08-14 at 10:34, Alan Cox wrote:
>
> >
> > Linux 2.4.20-pre2-ac1
>
> With CONFIG_NFSD=y I got this:
>
> fs/fs.o: In function `nfsd':
> fs/fs.o(.text+0x43fb1): undefined reference to `exp_readunlock'
> fs/fs.o: In function `sys_nfsservctl':
> fs/fs.o(.text+0x445e8): undefined reference to `exp_readunlock'
> fs/fs.o(.text+0x44692): undefined reference to `exp_readunlock'
> fs/fs.o(.data+0x261c): undefined reference to `exp_readunlock'
> make: *** [vmlinux] Error 1
>
This looks as though it ought to work (though I'm not at all familiar
with the code), and seems to be working for me on one box where I've
run it:
--- linux-2.4.20pre2/include/linux/nfsd/export.h.orig 2002-08-14 15:44:55.000000000 -0400
+++ linux-2.4.20pre2/include/linux/nfsd/export.h 2002-08-14 15:44:55.000000000 -0400
@@ -91,7 +91,7 @@
void nfsd_export_init(void);
void nfsd_export_shutdown(void);
void exp_readlock(void);
-void exp_readunlock(void);
+void exp_unlock(void);
struct svc_client * exp_getclient(struct sockaddr_in *sin);
void exp_putclient(struct svc_client *clp);
struct svc_export * exp_get(struct svc_client *clp, kdev_t dev, ino_t ino);
--- linux-2.4.20pre2/fs/nfsd/lockd.c.orig 2002-08-14 15:45:50.000000000 -0400
+++ linux-2.4.20pre2/fs/nfsd/lockd.c 2002-08-14 15:45:50.000000000 -0400
@@ -62,7 +62,7 @@
struct nlmsvc_binding nfsd_nlm_ops = {
exp_readlock, /* lock export table for reading */
- exp_readunlock, /* unlock export table */
+ exp_unlock, /* unlock export table */
exp_getclient, /* look up NFS client */
nlm_fopen, /* open file for locking */
nlm_fclose, /* close file */
--- linux-2.4.20pre2/fs/nfsd/nfsctl.c.orig 2002-08-14 15:46:13.000000000 -0400
+++ linux-2.4.20pre2/fs/nfsd/nfsctl.c 2002-08-14 15:46:13.000000000 -0400
@@ -123,7 +123,7 @@
err = -EPERM;
else
err = exp_rootfh(clp, 0, 0, data->gd_path, res, data->gd_maxlen);
- exp_readunlock();
+ exp_unlock();
return err;
}
@@ -146,7 +146,7 @@
err = -EPERM;
else
err = exp_rootfh(clp, 0, 0, data->gd_path, &fh, NFS_FHSIZE);
- exp_readunlock();
+ exp_unlock();
if (err == 0) {
if (fh.fh_size > NFS_FHSIZE)
@@ -179,7 +179,7 @@
err = -EPERM;
else
err = exp_rootfh(clp, to_kdev_t(data->gf_dev), data->gf_ino, NULL, &fh, NFS_FHSIZE);
- exp_readunlock();
+ exp_unlock();
if (err == 0) {
if (fh.fh_size > NFS_FHSIZE)
--- linux-2.4.20pre2/fs/nfsd/nfssvc.c.orig 2002-08-14 15:46:35.000000000 -0400
+++ linux-2.4.20pre2/fs/nfsd/nfssvc.c 2002-08-14 15:46:35.000000000 -0400
@@ -218,7 +218,7 @@
svc_process(serv, rqstp);
/* Unlock export hash tables */
- exp_readunlock();
+ exp_unlock();
update_thread_usage(atomic_read(&nfsd_busy));
atomic_dec(&nfsd_busy);
}
--
| G r e g L o u i s | gpg public key: |
| http://www.bgl.nu/~glouis | finger greg@bgl.nu |
next prev parent reply other threads:[~2002-08-14 20:25 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-08-14 16:34 Alan Cox
2002-08-14 16:44 ` Christoph Hellwig
2002-08-14 16:46 ` Alan Cox
2002-08-14 17:42 ` Steven Cole
2002-08-14 20:29 ` Greg Louis [this message]
2002-08-14 21:06 ` Steven Cole
2002-08-15 0:07 ` Alan Cox
2002-08-14 17:54 ` Javier Marcet
2002-08-14 18:03 ` Christoph Hellwig
2002-08-14 19:44 ` Unresolved symbols in nfsd in 2.4.20-pre2-ac1 Samuel Flory
2002-08-14 22:11 ` Linux 2.4.20-pre2-ac1 Adrian Bunk
2002-08-14 22:47 ` Adrian Bunk
2002-08-14 23:56 ` Chad Young
2002-08-15 1:03 ` Eyal Lebedinsky
2002-08-15 1:14 ` Alan Cox
2002-08-15 2:30 ` Kai Germaschewski
2002-08-15 10:52 ` Alan Cox
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=20020814162924.6a4203ef.glouis@dynamicro.on.ca \
--to=glouis@dynamicro.on.ca \
--cc=linux-kernel@vger.kernel.org \
/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
all inboxes | Powered by JetHome®