diff options
author | phk <phk@FreeBSD.org> | 2005-02-22 14:41:04 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2005-02-22 14:41:04 +0000 |
commit | d77b9fb94f3e72de3ae551fe226b132606e39439 (patch) | |
tree | 8e9b4ac704b6746a4ff1bf7035a436ed2f92d3aa /sys/fs/devfs | |
parent | b09090425ac9ba4d37d45dcf8948dcb26015700a (diff) | |
download | FreeBSD-src-d77b9fb94f3e72de3ae551fe226b132606e39439.zip FreeBSD-src-d77b9fb94f3e72de3ae551fe226b132606e39439.tar.gz |
Make dev_ref() require the dev_lock() to be held and use it from
devfs instead of directly frobbing the si_refcount.
Diffstat (limited to 'sys/fs/devfs')
-rw-r--r-- | sys/fs/devfs/devfs_vnops.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/fs/devfs/devfs_vnops.c b/sys/fs/devfs/devfs_vnops.c index dc20a60..e51ca4f 100644 --- a/sys/fs/devfs/devfs_vnops.c +++ b/sys/fs/devfs/devfs_vnops.c @@ -197,7 +197,7 @@ loop: vp->v_type = VCHR; VI_LOCK(vp); dev_lock(); - dev->si_refcount++; + dev_ref(dev); vp->v_rdev = dev; SLIST_INSERT_HEAD(&dev->si_hlist, vp, v_specnext); dev->si_usecount += vp->v_usecount; |