[dm-devel] [PATCH] RFC: Changing dm core (3/5): hash_cell open counter

Jun'ichi Nomura j-nomura at ce.jp.nec.com
Fri Mar 17 00:27:08 UTC 2006


Move open counter from md to hash_cell.
The counter is checked at hash_cell removal.
Non-zero counter disallows removal.

As a result, md->holders becomes pure reference counter of md.
It guarantees md is not freed until all tables are freed.

By protecting the counter, the race between open and remove
can be avoided.

Thanks,
-- 
Jun'ichi Nomura, NEC Solutions (America), Inc.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 03-hc-open-count.patch
Type: text/x-patch
Size: 10592 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/dm-devel/attachments/20060316/d93db7b2/attachment.bin>


More information about the dm-devel mailing list