summaryrefslogtreecommitdiffstats
path: root/sys/nfsclient/nfs_nfsiod.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/nfsclient/nfs_nfsiod.c')
-rw-r--r--sys/nfsclient/nfs_nfsiod.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/sys/nfsclient/nfs_nfsiod.c b/sys/nfsclient/nfs_nfsiod.c
index d34c205..2fb2c88 100644
--- a/sys/nfsclient/nfs_nfsiod.c
+++ b/sys/nfsclient/nfs_nfsiod.c
@@ -308,6 +308,14 @@ nfssvc_iod(void *instance)
mtx_unlock(&Giant);
mtx_lock(&nfs_iod_mtx);
/*
+ * Make sure the nmp hasn't been dismounted as soon as
+ * nfs_doio() completes for the last buffer.
+ */
+ nmp = nfs_iodmount[myiod];
+ if (nmp == NULL)
+ break;
+
+ /*
* If there are more than one iod on this mount, then defect
* so that the iods can be shared out fairly between the mounts
*/
OpenPOWER on IntegriCloud