Olaf Kirch wrote: ># Subject: Fix race conditions with file lock vs close ># ># When a multithreaded application tries to obtain a lock on a remote ># file server (NFS or other), while another thread closes the file, we ># risk oopsing or running into a BUG(). This can happen if the close ># happens inbetween sys_fcntl() grabbing the file pointer, and before ># the call to __posix_lock_file. ># ># The fix is to change fcntl_setlk* and make them check if the file ># is still open after the lock has been obtained. ># ># Signed-off-by: Olaf Kirch > A different patch was submitted upstream already to address the fcntl/close race. It was accepted into the '-mm' kernel on June 28'th. That patch is attached. Thanx... ps