tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Locking strategy for device deletion (also see PR kern/48536)



paul%whooppee.com@localhost (Paul Goyette) writes:

>> See misfs/specfs/spec_vnops.c::spec_close().

>yes, that would certainly explain the situation.  It does, however, make 
>it rather difficult to maintain a valid ref-count!

specfs does the open refcounting. The device only has a single bit, open
sets it and close clears it. That bit is added to a common counter
that is used for other references.


-- 
-- 
                                Michael van Elst
Internet: mlelstv%serpens.de@localhost
                                "A potential Snark may lurk in every tree."


Home | Main Index | Thread Index | Old Index