Bug 915862

Summary: The sync mount option does not work for NFSv4 mounts in RHEL6
Product: Red Hat Enterprise Linux 6 Reporter: Scott Mayhew <smayhew>
Component: kernelAssignee: Scott Mayhew <smayhew>
Status: CLOSED ERRATA QA Contact: Chao Ye <cye>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 6.4CC: cye, dhoward, djeffery, dwysocha, eguan, jkurik, michele, michele, msvoboda, nfs-maint, riehecky, rwheeler, smayhew, steved
Target Milestone: rcKeywords: Patch, ZStream
Target Release: ---Flags: smayhew: needinfo-
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: kernel-2.6.32-432.el6 Doc Type: Bug Fix
Doc Text:
A previous change in the NFSv4 code resulted in breaking the sync NFSv4 mount option. A patch has been applied that restores functionality of the sync mount option.
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-10-14 05:14:41 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 961026, 1030169, 1030171    
Attachments:
Description Flags
potential fix for rhel6 kernels
none
potential fix for upstream kernel none

Description Scott Mayhew 2013-02-26 16:39:00 UTC
Description of problem:
The sync mount option does not work for NFSv4 mounts in RHEL6.

Version-Release number of selected component (if applicable):
All

How reproducible:
Always

Steps to Reproduce:
1. mount -t nfs4 -o sync server:/export /mnt
2. grep sync /proc/mounts
  
Actual results:
The sync option is nowhere to be found.

Expected results:
The sync option should be set.

Additional info:
This was broken by commit c02d7ad (NFSv4: Replace nfs4_path_walk() with VFS path lookup in a private namespace).

Comment 1 Scott Mayhew 2013-02-26 16:39:53 UTC
Created attachment 703020 [details]
potential fix for rhel6 kernels

Comment 2 Scott Mayhew 2013-02-26 16:40:34 UTC
Created attachment 703021 [details]
potential fix for upstream kernel

Comment 4 RHEL Program Management 2013-07-31 11:40:32 UTC
This request was evaluated by Red Hat Product Management for
inclusion in a Red Hat Enterprise Linux release.  Product
Management has requested further review of this request by
Red Hat Engineering, for potential inclusion in a Red Hat
Enterprise Linux release for currently deployed products.
This request is not yet committed for inclusion in a release.

Comment 8 Jeff Layton 2013-11-08 16:46:33 UTC
*** Bug 1027344 has been marked as a duplicate of this bug. ***

Comment 15 Rafael Aquini 2013-12-02 16:19:52 UTC
Patch(es)

Comment 18 Chao Ye 2014-07-03 08:19:21 UTC
Reproduced on -431.el6:
======================================================
[root@hp-dl388g8-18 combo]# mount -o vers=4,sync hp-dl388g8-15.rhts.eng.nay.redhat.com:/mnt/testarea/server /mnt/testarea/client
[root@hp-dl388g8-18 combo]# cat /proc/mounts | grep nfs | grep sync
[root@hp-dl388g8-18 combo]# uname -a
Linux hp-dl388g8-18.rhts.eng.nay.redhat.com 2.6.32-431.el6.x86_64 #1 SMP Sun Nov 10 22:19:54 EST 2013 x86_64 x86_64 x86_64 GNU/Linux

Verfied on -488.el6:
======================================================
[root@ibm-hs21-01 combo]# mount -o vers=4,sync ibm-x3550m4-02.rhts.eng.nay.redhat.com:/mnt/testarea/server /mnt/testarea/client
[root@ibm-hs21-01 combo]# cat /proc/mounts | grep nfs | grep sync
ibm-x3550m4-02.rhts.eng.nay.redhat.com:/mnt/testarea/server /mnt/testarea/client nfs4 rw,sync,relatime,vers=4,rsize=1048576,wsize=1048576,namlen=255,hard,proto=tcp,port=0,timeo=600,retrans=2,sec=sys,clientaddr=10.66.86.23,minorversion=0,local_lock=none,addr=10.66.87.55 0 0
[root@ibm-hs21-01 combo]# uname -a
Linux ibm-hs21-01.rhts.eng.nay.redhat.com 2.6.32-488.el6.x86_64 #1 SMP Wed Jun 25 21:13:56 EDT 2014 x86_64 x86_64 x86_64 GNU/Linux

Move to VERIFIED.

Comment 19 errata-xmlrpc 2014-10-14 05:14:41 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHSA-2014-1392.html