mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Dima Brodsky <dima@cs.ubc.ca>
To: Linux Kernel List <linux-kernel@vger.kernel.org>
Cc: Dima Brodsky <dima@cs.ubc.ca>
Subject: RPC: rpciod waiting on sync task!
Date: Tue, 3 Jul 2001 16:44:36 -0700	[thread overview]
Message-ID: <20010703164436.A20309@cascade.cs.ubc.ca> (raw)

Hi,

I modified the linux NFS client, kernel 2.4.5 and 2.4.6-pre7, to send
an extra SETATTR, with special values, within nfs_open and nfs_release
so that I would be able to track file open and close.  For the server I
am using a slightly modified linux user level nfs server.

What I noticed is that after this change I get:

RPC: rpciod waiting on sync task!

coming from the kernel under heavy read load, especially with
larger chunks of data 8k, 16, and 64k.

The code introduced into nfs_open and nfs_release is:

        memset( &fattr, 0, sizeof(struct nfs_fattr) );
        memset( &attr, 0, sizeof(struct iattr) );

        attr.ia_valid = ATTR_MODE | ATTR_UID | ATTR_GID | ATTR_SIZE;
        attr.ia_mode = inode->i_mode;
        attr.ia_uid = -10;
        attr.ia_gid = -10;
        attr.ia_size = -10;
        attr.ia_atime = -1;
        attr.ia_mtime = -1;
        attr.ia_ctime = -1;
        attr.ia_attr_flags = -1;

        error = NFS_PROTO(inode)->setattr(inode, &fattr, &attr);
        if ( error ) {
                printk( "nfs_network_openclose: error=%d\n", error );
        }

Does anybody see any problems with this code?  The unmodified nfs client
works fine with the unmodified nfs server.

Thanks
ttyl
Dima

-- 
Dima Brodsky                                   dima@cs.ubc.ca
                                               http://www.cs.ubc.ca/~dima
201-2366 Main Mall                             (604) 822-6179 (Office)
Department of Computer Science                 (604) 822-2895 (DSG Lab)
University of British Columbia, Canada         (604) 822-5485 (FAX)

Computers are like Old Testament gods; lots of rules and no mercy.
							  (Joseph Campbell)


             reply	other threads:[~2001-07-03 23:45 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-07-03 23:44 Dima Brodsky [this message]
2001-07-04 12:01 ` Trond Myklebust

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=20010703164436.A20309@cascade.cs.ubc.ca \
    --to=dima@cs.ubc.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®