OpenSolaris

Printable Version Enter a New Search
Bug ID 6647148
Synopsis the smp_open_ref is used incorrectly and can be removed
State 10-Fix Delivered (Fix available in build)
Category:Subcategory driver:smp
Keywords smp
Responsible Engineer River Li
Reported Against
Duplicate Of
Introduced In solaris_nevada
Commit to Fix snv_82
Fixed In snv_82
Release Fixed solaris_nevada(snv_82) , solaris_10u6(s10u6_02) (Bug ID:2161532)
Related Bugs
Submit Date 4-January-2008
Last Update Date 31-January-2008
Description
The smp_open_ref is the reference counter of open&close operation for each smp instance. It's used incorrectly(+1 in open, -1 in close) because the invocation of smp_open and smp_close in kernel is not symmetrical. In case that one smp device minor is opened multiple times, each open from userland will invoke smp_open in kernel, while only the latest close will invoke the smp_close in kernel. This makes the reference counter nonzero after the latest close. From then on, open with O_EXCL flag will always fail because reference counter is not zero.
Work Around
N/A
Comments
N/A