Bug 55981

Summary: NFS mailboxes won't unlock in imapd
Product: [Retired] Red Hat Linux Reporter: John Dalbec <jpdalbec>
Component: kernelAssignee: Arjan van de Ven <arjanv>
Status: CLOSED ERRATA QA Contact: Brock Organ <borgan>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.1   
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2001-11-09 22:06:29 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Description John Dalbec 2001-11-09 20:35:28 UTC
From Bugzilla Helper:
User-Agent: Mozilla/4.77 [en] (X11; U; Linux 2.4.9-6 i686)

Description of problem:
After imapd reads an NFS-mounted mailbox, it hangs trying to release the
fcntl() lock on it.  An strace -p shows data being read from the mailbox
and then the fcntl() call never returns.  A kill -9 is needed to terminate
the daemon, which then leaves .lock files behind.  The process is listed as
sleeping in ps.  At least it's not a 'D' wait!

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


How reproducible:
Always

Steps to Reproduce:
1. Mount IMAP mailbox over NFS.
2. Try to read messages.
3.
	

Actual Results:  IMAP server hangs trying to unlock mailbox.  Client
eventually times out but server processes hang around until killed -9.

Expected Results:  The lock should have been released.

Additional info:

NFS mounted filesystems here are ReiserFS, not sure what happens with
ext2/3.  Chris Mason of SuSE thinks it's not ReiserFS-specific.

Comment 1 John Dalbec 2001-11-09 20:58:46 UTC
OK, I've reproduced this with the standalone flock.c from the IMAP source.  I've
also reproduced it with an NFS mount of an ext2 filesystem.  Kernel 2.4.9-6
i686-enterprise.


Comment 2 Arjan van de Ven 2001-11-09 22:06:24 UTC
We've released an update for this several days ago; 2.4.9-12 has, appart from
the security fixes, also the NFS locking bug fixed. I recommend giving that a try.