adding cancel routine to mount

a user process can start a mount command and ctl-c it before it completes.
the deamon then would have a mount that we can never unmount.
This commit is contained in:
Olga Kornievskaia 2011-03-25 13:17:23 -04:00
parent 3a06ec9080
commit 6aab42a4b5

View file

@ -122,10 +122,17 @@ out:
return status;
}
static void cancel_mount(IN nfs41_upcall *upcall)
{
mount_upcall_args *args = &upcall->args.mount;
nfs41_root_deref(args->root);
}
const nfs41_upcall_op nfs41_op_mount = {
parse_mount,
handle_mount,
marshall_mount
marshall_mount,
cancel_mount
};