Skip to content

Commit

Permalink
NFS: Fix use of cancel_delayed_work_sync in nfs_release_automount_timer
Browse files Browse the repository at this point in the history
Doh! We can't use cancel_delayed_work_sync because we may have been called
from an unmount that was being performed by nfs_automount_task.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
  • Loading branch information
Trond Myklebust authored and Trond Myklebust committed Sep 1, 2007
1 parent 40ffbfa commit 560aef7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/nfs/namespace.c
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ static void nfs_expire_automounts(struct work_struct *work)
void nfs_release_automount_timer(void)
{
if (list_empty(&nfs_automount_list))
cancel_delayed_work_sync(&nfs_automount_task);
cancel_delayed_work(&nfs_automount_task);
}

/*
Expand Down

0 comments on commit 560aef7

Please sign in to comment.