diff options
Diffstat (limited to 'fs/afs/callback.c')
-rw-r--r-- | fs/afs/callback.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/afs/callback.c b/fs/afs/callback.c index bacf518c6fa8..b8243945818d 100644 --- a/fs/afs/callback.c +++ b/fs/afs/callback.c | |||
@@ -125,6 +125,9 @@ static void afs_break_callback(struct afs_server *server, | |||
125 | spin_unlock(&server->cb_lock); | 125 | spin_unlock(&server->cb_lock); |
126 | 126 | ||
127 | queue_work(afs_callback_update_worker, &vnode->cb_broken_work); | 127 | queue_work(afs_callback_update_worker, &vnode->cb_broken_work); |
128 | if (list_empty(&vnode->granted_locks) && | ||
129 | !list_empty(&vnode->pending_locks)) | ||
130 | afs_lock_may_be_available(vnode); | ||
128 | spin_unlock(&vnode->lock); | 131 | spin_unlock(&vnode->lock); |
129 | } | 132 | } |
130 | } | 133 | } |