Bug 195956 - print an error message when lock/unlock return an error
Summary: print an error message when lock/unlock return an error
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Cluster Suite
Classification: Retired
Component: dlm
Version: 4
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: David Teigland
QA Contact: Cluster QE
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-06-19 21:13 UTC by David Teigland
Modified: 2010-01-04 19:56 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-01-04 19:56:30 UTC
Embargoed:


Attachments (Terms of Use)

Description David Teigland 2006-06-19 21:13:22 UTC
Description of problem:

dlm_lock() and dlm_unlock() occasionally return an error (EINVAL)
to gfs/lock_dlm which causes the machine to panic.  The problem
is that any number of conditions can lead to this and we have no
way of knowing which it was.  We would have a much better chance
of diagnosing and fixing problems if a message was printed for
each specific error condition.  This is something we've wanted
to do for a long time, but never gotten around to it.

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


How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 David Teigland 2006-06-22 14:24:51 UTC
CVSROOT:        /cvs/cluster
Module name:    cluster
Branch:         RHEL4
Changes by:     teigland 2006-06-22 14:29:54

Modified files:
        dlm-kernel/src : locking.c

Log message:
        Add a log_error() for every abnormal error/exit condition in dlm_lock() 
        and dlm_unlock().  When gfs panics after it gets the error we can look  
        back and see what the cause was.



Note You need to log in before you can comment on or make changes to this bug.