Description of problem: Need a mechanism accessible to (glusterfs) administrator to clear locks held on an inode. The locks include posix locks and gluster-internal locks. This feature attempts to mitigate deadlocks/stale-lock situation without a complete restart of the volume. Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info:
CHANGE: http://review.gluster.com/2551 (locks: Added a getxattr interface to clear locks on a given inode.) merged in master by Vijay Bellur (vijay)
CHANGE: http://review.gluster.com/2552 (cli, glusterd : Added support for clear-locks command.) merged in master by Vijay Bellur (vijay)
CHANGE: http://review.gluster.com/798 (locks: Made dump locks formatting more 'readable'.) merged in master by Vijay Bellur (vijay)
CHANGE: http://review.gluster.com/2882 (protocol/client: Added lk_ctx info in fdctx dump) merged in master by Vijay Bellur (vijay)
gluster volume clear-locks Usage: volume clear-locks <VOLNAME> <path> kind {blocked|granted|all}{inode [range]|entry [basename]|posix [range]} With the above command the locks on a inode (by giving the path) can be cleared.
*** Bug 817763 has been marked as a duplicate of this bug. ***