deal with v_mount == NULL in nfs_reclaim(). We should not be touching this
anyway, but nq-nfs wants us to.
This commit is contained in:
parent
12b8e3917b
commit
da8db7611e
|
@ -1,4 +1,4 @@
|
||||||
/* $NetBSD: nfs_node.c,v 1.53 2002/03/16 23:05:25 chs Exp $ */
|
/* $NetBSD: nfs_node.c,v 1.54 2002/09/30 20:55:55 christos Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1989, 1993
|
* Copyright (c) 1989, 1993
|
||||||
|
@ -39,7 +39,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
__KERNEL_RCSID(0, "$NetBSD: nfs_node.c,v 1.53 2002/03/16 23:05:25 chs Exp $");
|
__KERNEL_RCSID(0, "$NetBSD: nfs_node.c,v 1.54 2002/09/30 20:55:55 christos Exp $");
|
||||||
|
|
||||||
#include "opt_nfs.h"
|
#include "opt_nfs.h"
|
||||||
|
|
||||||
|
@ -281,8 +281,10 @@ nfs_reclaim(v)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* For nqnfs, take it off the timer queue as required.
|
* For nqnfs, take it off the timer queue as required.
|
||||||
|
* The mount point could have gone away under us.
|
||||||
|
* XXX: SMP
|
||||||
*/
|
*/
|
||||||
if ((nmp->nm_flag & NFSMNT_NQNFS) && np->n_timer.cqe_next != 0) {
|
if (nmp && (nmp->nm_flag & NFSMNT_NQNFS) && np->n_timer.cqe_next != 0) {
|
||||||
CIRCLEQ_REMOVE(&nmp->nm_timerhead, np, n_timer);
|
CIRCLEQ_REMOVE(&nmp->nm_timerhead, np, n_timer);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue