NFS: Do not display the setting of the "intr" mount option
Subsystems (2)
PATCH 1/1 NFS: Do not display the setting of the "intr" mount option
The "intr" mount option has been deprecated for a while, but /proc/mounts continues to display "nointr" whether "intr" or "nointr" has been specified for a mount point.
Since these options do not have any effect, simply do not display them.
---
Hi Trond-
For 2.6.31?
fs/nfs/super.c | 1 - 1 files changed, 0 insertions(+), 1 deletions(-)
fs/nfs/super.c +0 -1
@@ -514,7 +514,6 @@ static void nfs_show_mount_options(struct seq_file *m, struct nfs_server *nfss,const char *nostr; } nfs_info[] = { { NFS_MOUNT_SOFT, ",soft", ",hard" }, - { NFS_MOUNT_INTR, ",intr", ",nointr" }, { NFS_MOUNT_POSIX, ",posix", "" }, { NFS_MOUNT_NOCTO, ",nocto", "" }, { NFS_MOUNT_NOAC, ",noac", "" },
A message that is not in the archive (sent off-list or not yet received): 20090501163402.25637.67939.stgit-07a7zB5ZJzbwdl/1UfZZQIVfYA8g3rJ/@public.gmane.org
Quoted 6 lines · Chuck Lever
The "intr" mount option has been deprecated for a while, but
/proc/mountscontinues to display "nointr" whether "intr" or "nointr" has been specified for a mount point.Since these options do not have any effect, simply do not display them.
Does this mean that "intr" is default now? Will the "intr" mount option still be accepted/ignored in the future?
Best regards, ---
Peter Åstrand ThinLinc Chief Developer
Cendio AB http://www.cendio.com
Wallenbergs gata 4
583 30 Linköping Phone: +46-13-21 46 00
A message that is not in the archive (sent off-list or not yet received): alpine.LFD.2.00.0905021010320.19638-K9BqGu7AvB3wj5YHdwD3Ga2PxDmRETKR@public.gmane.org
Quoted 4 lines · On May 2, 2009, at 4:12 AM, Peter =C5strand wrote:
Quoted 2 lines · Chuck Lever
The "intr" mount option has been deprecated for a while, but
/proc/mountscontinues to display "nointr" whether "intr" or "nointr=
"
Quoted 8 lines
Quoted 4 lines
has been specified for a mount point.
Since these options do not have any effect, simply do not display them.
Does this mean that "intr" is default now? Will the "intr" mount =20 option
still be accepted/ignored in the future?
Since 2.6.25, the behavior of the NFS client has been a mix of the =20 two. I believe the current behavior is that SIGKILL can terminate an =20 NFS operation, but all other signals are deferred until pending NFS =20 operations complete.
The mount command continues to accept both options, but neither have =20 any effect on the client's behavior (both options are no-ops).
--
Chuck Lever
chuck[dot]lever[at]oracle[dot]com
Quoted 5 lines · Chuck Lever
Quoted 4 lines · On May 2, 2009, at 4:12 AM, Peter =C3=85strand wrote:
Quoted 2 lines · Chuck Lever
The "intr" mount option has been deprecated for a while, but
/proc/mountscontinues to display "nointr" whether "intr" or "noin=
tr"
Quoted 11 lines
Quoted 8 lines
Quoted 4 lines
has been specified for a mount point.
Since these options do not have any effect, simply do not display them.
Does this mean that "intr" is default now? Will the "intr" mount =20 option
still be accepted/ignored in the future?=20
Since 2.6.25, the behavior of the NFS client has been a mix of the =20 two. I believe the current behavior is that SIGKILL can terminate an=
=20
Quoted 4 lines
NFS operation, but all other signals are deferred until pending NFS =20 operations complete.
=20
The mount command continues to accept both options, but neither have =
=20
Quoted 1 line
any effect on the client's behavior (both options are no-ops).
Note that this behaviour is true of local filesystems too, since generic_file_read() has been changed to call lock_page_killable() instead of the uninterruptible lock_page().
Trond
A message that is not in the archive (sent off-list or not yet received): 1241455743.5754.10.camel-rJ7iovZKK19ZJLDQqaL3InhyD016LWXt@public.gmane.org
Quoted 4 lines · Trond Myklebust
Quoted 4 lines
Since 2.6.25, the behavior of the NFS client has been a mix of the two. I believe the current behavior is that SIGKILL can terminate an NFS operation, but all other signals are deferred until pending NFS operations complete.
I guess this means that commands cannot be terminated using Ctrl-C, since that generates a SIGINT? If so, this is a change for the worse.
Quoted 6 lines
Quoted 2 lines
The mount command continues to accept both options, but neither have any effect on the client's behavior (both options are no-ops).
Note that this behaviour is true of local filesystems too, since
generic_file_read()has been changed to calllock_page_killable()instead of the uninterruptiblelock_page().
I see. However, it's much more common with unreachable network servers than unreachable local block devices.
Best regards, ---
Peter Åstrand ThinLinc Chief Developer
Cendio AB http://www.cendio.com
Wallenbergs gata 4
583 30 Linköping Phone: +46-13-21 46 00
A message that is not in the archive (sent off-list or not yet received): alpine.LFD.2.00.0905050832340.6736-K9BqGu7AvB3wj5YHdwD3Ga2PxDmRETKR@public.gmane.org
Quoted 4 lines · On Tue, 2009-05-05 at 08:36 +0200, Peter =C3=85strand wrote:
On Mon, 4 May 2009, Trond Myklebust wrote:
=20Quoted 2 lines
Quoted 2 lines
Since 2.6.25, the behavior of the NFS client has been a mix of the two. I believe the current behavior is that SIGKILL can terminate=
an
Quoted 1 line
Quoted 1 line
Quoted 1 line
NFS operation, but all other signals are deferred until pending NF=
S
Quoted 3 lines
Quoted 1 line
Quoted 1 line
operations complete.
=20
I guess this means that commands cannot be terminated using Ctrl-C, s=
ince=20
Quoted 1 line
that generates a SIGINT? If so, this is a change for the worse.
The *_killable() behaviour is to exit on all fatal signals. The definition of a fatal signal is any signals that is not blocked, that does not have a handler, and that is not listed in the SIG_KERNEL_IGNORE_MASK or SIG_KERNEL_STOP_MASK (see the definition of sig_fatal() in include/linux/signal.h) and that won't result in a core dump (see the definition of complete_signal() in kernel/signal.c).
An unhandled and unblocked SIGINT should therefore result in the sleep being interrupted.
Quoted 1 line
Quoted 1 line
Quoted 1 line
The mount command continues to accept both options, but neither ha=
ve
Quoted 7 lines
Quoted 5 lines
Quoted 1 line
any effect on the client's behavior (both options are no-ops).
Note that this behaviour is true of local filesystems too, since
generic_file_read()has been changed to calllock_page_killable()instead of the uninterruptiblelock_page().=20
I see. However, it's much more common with unreachable network server=
s=20
Quoted 1 line
than unreachable local block devices.
There are plenty of networked block devices these days (iSCSI, =46CoE, ...).