Bug 678068

Summary: NFS lock requests go missing
Product: [Fedora] Fedora Reporter: Michael Young <m.a.young>
Component: kernelAssignee: Kernel Maintainer List <kernel-maint>
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 14CC: gansalmon, itamar, jonathan, kernel-maint, madhu.chinakonda
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-08-16 13:45:37 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Michael Young 2011-02-16 16:38:32 UTC
On a fairly busy computer we have had problems where an application started via cron fails to get a lock on an NFS(v3) file most of the time. I wrapped such a program in strace and got the following for such a failed run,

open("/home/....../...../..../clamav/freshclam.log", O_WRONLY|O_CREAT|O_APPEN
D, 0666) = 3
fstat64(3, {st_mode=S_IFREG|0640, st_size=0, ...}) = 0
mmap2(NULL, 65536, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb
776c000
fstat64(3, {st_mode=S_IFREG|0640, st_size=0, ...}) = 0
_llseek(3, 0, [0], SEEK_SET)            = 0
umask(022)                              = 037
fcntl64(3, F_SETLK, {type=F_WRLCK, whence=SEEK_SET, start=0, len=0}) = -1 EIO (I
nput/output error)

I also got a network traffic dump and it seems (amidst the noise from other processes) that the file is opened, the computer asks the server what port the lock daemon is listening on, but no locking request is made and about 10 seconds later I see an unlock request for the file it was supposed to have locked. So it seems the kernel forgets to send the lock request to the server, and eventually decides that the server isn't responding and unlocks the file just in case.
The kernel is 2.6.35.10-74.fc14.i686.PAE

Comment 1 Fedora End Of Life 2012-08-16 13:45:41 UTC
This message is a notice that Fedora 14 is now at end of life. Fedora 
has stopped maintaining and issuing updates for Fedora 14. It is 
Fedora's policy to close all bug reports from releases that are no 
longer maintained.  At this time, all open bugs with a Fedora 'version'
of '14' have been closed as WONTFIX.

(Please note: Our normal process is to give advanced warning of this 
occurring, but we forgot to do that. A thousand apologies.)

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, feel free to reopen 
this bug and simply change the 'version' to a later Fedora version.

Bug Reporter: Thank you for reporting this issue and we are sorry that 
we were unable to fix it before Fedora 14 reached end of life. If you 
would still like to see this bug fixed and are able to reproduce it 
against a later version of Fedora, you are encouraged to click on 
"Clone This Bug" (top right of this page) and open it against that 
version of Fedora.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events.  Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

The process we are following is described here: 
http://fedoraproject.org/wiki/BugZappers/HouseKeeping