linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: [NFS] [PATCH] SGI 926917: make knfsd interact cleanly with HSMs
       [not found]   ` <16971.22880.262928.543410@cse.unsw.edu.au>
@ 2005-03-31  2:18     ` Greg Banks
  0 siblings, 0 replies; only message in thread
From: Greg Banks @ 2005-03-31  2:18 UTC (permalink / raw)
  To: Neil Brown
  Cc: Linux NFS Mailing List, Linux Kernel Mailing List, Al Viro,
	Linux Filesystem Development List

On Thu, 2005-03-31 at 11:58, Neil Brown wrote:
> On Thursday March 31, gnb@melbourne.sgi.com wrote:
> > On Tue, 2005-03-15 at 18:49, Greg Banks wrote:
> > > This patch seeks to remedy the interaction between knfsd and HSMs by
> > > providing mechanisms to allow knfsd to tell an underlying filesystem
> > > (which supports HSMs) not to block for reads, writes and truncates
> > > of offline files.  It's a port of a Linux 2.4 patch used in SGI's
> > > ProPack distro for the last 12 months.  The patch:
> > 
> > Any news on this patch?  Is it good, bad, ugly, or what?
> [...]
> Yes, it looks reasonably sane.
> 
> I'm not very comfortable about the
> 
> +		if (rqstp->rq_vers == 3)
> 
> usage.  Shouldn't it be 
> +		if (rqstp->rq_vers >= 3)
> as presumably NFSv4 would like NFSERR_JUKEBOX returns too.

I guess so, but I haven't tested it with v4.  I'll update the patch.

> Also, it assumes an extension to the semantics of IFREG files such
> that O_NONBLOCK has a meaning... 

Yes.

> What exactly is that meaning?
> "Returned -EAGAIN if the request will take a long time for some vague
> definition of long" ...

This is one of the issues I'd appreciate some real feedback on, so
I've cc'ed lkml and fsdevel.

The specific and practical answer is "Return -EAGAIN if DMAPI decides
it needs to queue an event", but that only applies to XFS (and JFS
in SLES) so it's not really a generic definition.

>From knfsd's point of view, the desired definition is "Return -EAGAIN
if the operation is likely to take longer than a client RPC timeout".
Of course, the server doesn't know what that number is, although 1.1 sec
is a pretty good guess.

Perhaps the best definition is "Return -EAGAIN if the operation needs
to block on something other than a disk IO".  This covers what actually
happens in the guts of XFS, what needs generically to happen for HSMs,
and suits the needs of knfsd.

> Is this new semantic in any way 'standard' or accepted by the
> filesystem gurus (e.g. Al Viro)??

It's not currently standard; my hope is to extend the standard.
I've cc'ed Al Viro in the hope of some feedback.

Greg.
-- 
Greg Banks, R&D Software Engineer, SGI Australian Software Group.
I don't speak for SGI.



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-03-31  2:19 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20050315074949.GA4541@sgi.com>
     [not found] ` <1112233192.1991.1031.camel@hole.melbourne.sgi.com>
     [not found]   ` <16971.22880.262928.543410@cse.unsw.edu.au>
2005-03-31  2:18     ` [NFS] [PATCH] SGI 926917: make knfsd interact cleanly with HSMs Greg Banks

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).