|
@@ -456,7 +456,8 @@ static int afs_do_getlk(struct file *file, struct file_lock *fl)
|
|
|
|
|
|
/* check local lock records first */
|
|
|
ret = 0;
|
|
|
- if (posix_test_lock(file, fl) == 0) {
|
|
|
+ posix_test_lock(file, fl);
|
|
|
+ if (fl->fl_type == F_UNLCK) {
|
|
|
/* no local locks; consult the server */
|
|
|
ret = afs_vnode_fetch_status(vnode, NULL, key);
|
|
|
if (ret < 0)
|