|
@@ -133,7 +133,7 @@ int ocfs2_lock(struct file *file, int cmd, struct file_lock *fl)
|
|
|
|
|
|
if (!(fl->fl_flags & FL_POSIX))
|
|
|
return -ENOLCK;
|
|
|
- if (__mandatory_lock(inode))
|
|
|
+ if (__mandatory_lock(inode) && fl->fl_type != F_UNLCK)
|
|
|
return -ENOLCK;
|
|
|
|
|
|
return ocfs2_plock(osb->cconn, OCFS2_I(inode)->ip_blkno, file, cmd, fl);
|