Project

General

Profile

Bug #9016

Default timeout for NFSv4 ephemeral mounts is wrong

Added by Marcel Telka over 1 year ago. Updated over 1 year ago.

Status:
Closed
Priority:
Low
Assignee:
Category:
nfs - NFS server and client
Start date:
2018-02-02
Due date:
% Done:

100%

Estimated time:
Difficulty:
Bite-size
Tags:
needs-triage

Description

The default timeout for NFSv4 ephemeral mounts is set nfs4_trigger_thread_timer (20 seconds). It should be set to nfs4_trigger_mount_to (240 seconds) instead. In either case, this value is probably never used because it is usually set to different value from userspace (usually 600 seconds).


Related issues

Related to illumos gate - Bug #6690: set_nfsv4_ephemeral_mount_to() tries to read AUTOMOUNT_TIMEOUT from defunct /etc/default/autofsClosed2016-02-27

Actions

History

#1

Updated by Marcel Telka over 1 year ago

  • Related to Bug #6690: set_nfsv4_ephemeral_mount_to() tries to read AUTOMOUNT_TIMEOUT from defunct /etc/default/autofs added
#3

Updated by Marcel Telka over 1 year ago

Testing

Without the fix:

# modinfo | grep nfs
# modload /kernel/fs/amd64/nfs
# KEY=$(mdb -ke 'nfs4_ephemeral_key::print')
# PTR=$(mdb -ke "::zsd $KEY" | tail -n1 | awk '{print $3}')
# mdb -ke "$PTR::print nfs4_trigger_globals_t ntg_mount_to" 
ntg_mount_to = 0x14
#

With the fix:

# modinfo | grep nfs
# modload /kernel/fs/amd64/nfs
# KEY=$(mdb -ke 'nfs4_ephemeral_key::print')
# PTR=$(mdb -ke "::zsd $KEY" | tail -n1 | awk '{print $3}')
# mdb -ke "$PTR::print nfs4_trigger_globals_t ntg_mount_to" 
ntg_mount_to = 0xf0
#
#4

Updated by Marcel Telka over 1 year ago

  • Status changed from In Progress to Pending RTI
#5

Updated by Electric Monk over 1 year ago

  • Status changed from Pending RTI to Closed
  • % Done changed from 0 to 100

git commit cb5401f44dd4e0e363bea3d5a660aa98d3538220

commit  cb5401f44dd4e0e363bea3d5a660aa98d3538220
Author: Marcel Telka <marcel@telka.sk>
Date:   2018-02-14T19:02:54.000Z

    9016 Default timeout for NFSv4 ephemeral mounts is wrong
    Reviewed by: Yuri Pankov <yuripv@gmx.com>
    Approved by: Richard Lowe <richlowe@richlowe.net>

Also available in: Atom PDF