From: Jim Rees <rees@umich.edu>
To: Trond Myklebust <trond.myklebust@primarydata.com>
Cc: Brown Neil <neilb@suse.de>, Dickson Steve <steved@redhat.com>,
linux-nfs@vger.kernel.org
Subject: Re: [PATCH] fix intr/nointr to match kernel behavior (ignored)
Date: Fri, 7 Mar 2014 20:38:32 -0500 [thread overview]
Message-ID: <20140308013832.GA10728@umich.edu> (raw)
In-Reply-To: <12C999A4-52B8-461F-BFB9-F67AB4F6EFCE@primarydata.com>
Trond Myklebust wrote:
> I would certainly be good if we could delegation the documentation. But I
> couldn't find anything in signal(7) that seemed particularly relevant. Which
> bit were you thinking of?
>
The table which lists the posix signals, and which indicates whether they
are fatal not (i.e. what ‘action’ they cause). The same page also
explains signal blocking and signal handling, which could also be
helpful..
This seems the relevant part to me, assuming nfs system calls are considered
"slow":
* read(2), readv(2), write(2), writev(2), and ioctl(2) calls on
"slow" devices. A "slow" device is one where the I/O call may
block for an indefinite time, for example, a terminal, pipe, or
socket. (A disk is not a slow device according to this defini‐
tion.) If an I/O call on a slow device has already transferred
some data by the time it is interrupted by a signal handler, then
the call will return a success status (normally, the number of
bytes transferred).
Here's Neil's description:
>>> "A process that is waiting for a reply for an NFS server can be killed
>>> by any signal which would normally kill the process. If a signal would not
>>> normally kill the process (i.e. it is caught or ignored) then that signal
>>> will not abort and NFS request".
So assuming nfs system calls honor the SA_RESTART flag, I think these
behaviors are the same?
prev parent reply other threads:[~2014-03-08 1:39 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-06 22:02 [PATCH] fix intr/nointr to match kernel behavior (ignored) Jim Rees
2014-03-07 7:59 ` NeilBrown
2014-03-07 13:13 ` Trond Myklebust
2014-03-07 23:42 ` NeilBrown
2014-03-07 23:57 ` Trond Myklebust
2014-03-08 1:38 ` Jim Rees [this message]
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=20140308013832.GA10728@umich.edu \
--to=rees@umich.edu \
--cc=linux-nfs@vger.kernel.org \
--cc=neilb@suse.de \
--cc=steved@redhat.com \
--cc=trond.myklebust@primarydata.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.