FreeBSD Bugzilla – Attachment 53925 Details for
Bug 81588
[kernel] [patch] Devices with SI_CHEAPCLONE flag don't seem to go away when they're no longer used in -current
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
patch.txt
patch.txt (text/plain), 1.24 KB, created by
Antoine Brodin
on 2005-06-25 15:06:44 UTC
(
hide
)
Description:
patch.txt
Filename:
MIME Type:
Creator:
Antoine Brodin
Created:
2005-06-25 15:06:44 UTC
Size:
1.24 KB
patch
obsolete
>Index: kern/kern_conf.c >=================================================================== >RCS file: /home/ncvs/src/sys/kern/kern_conf.c,v >retrieving revision 1.186 >diff -u -p -r1.186 kern_conf.c >--- kern/kern_conf.c 31 Mar 2005 10:29:57 -0000 1.186 >+++ kern/kern_conf.c 25 Jun 2005 12:08:26 -0000 >@@ -97,7 +97,8 @@ dev_rel(struct cdev *dev) > ("dev_rel(%s) gave negative count", devtoname(dev))); > if (dev->si_usecount == 0 && > (dev->si_flags & SI_CHEAPCLONE) && (dev->si_flags & SI_NAMED)) >- if (dev->si_devsw == NULL && dev->si_refcount == 0) { >+ destroy_devl(dev); >+ else if (dev->si_devsw == NULL && dev->si_refcount == 0) { > LIST_REMOVE(dev, si_list); > flag = 1; > } >Index: fs/devfs/devfs_vnops.c >=================================================================== >RCS file: /home/ncvs/src/sys/fs/devfs/devfs_vnops.c,v >retrieving revision 1.114 >diff -u -p -r1.114 devfs_vnops.c >--- fs/devfs/devfs_vnops.c 31 May 2005 14:50:49 -0000 1.114 >+++ fs/devfs/devfs_vnops.c 25 Jun 2005 13:48:02 -0000 >@@ -712,7 +712,9 @@ devfs_lookupx(ap) > devfs_populate(dmp); > > dde = devfs_itode(dmp, cdev->si_inode); >- dev_rel(cdev); >+ dev_lock(); >+ cdev->si_refcount--; >+ dev_unlock(); > > if (dde == NULL || *dde == NULL || *dde == DE_DELETED) > goto notfound;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 81588
: 53925