[dm-devel] [PATCH][RESEND+fixes] dm + sysfs
Mike Christie
mikenc at us.ibm.com
Sat Nov 15 11:17:02 UTC 2003
Hello Joe,
This is a resend of my dm+sysfs patch, except I moved everything
(mapped_device, dm_table and dm_table's dm_dev list) back to where they
belong and added better code to test for and clean up from sysfs/kobject
failures.
I also unified the ref counting for the structs represented in sysfs. If
someone does "dmsetup remove mydev" but has a dm sysfs file open, the
memory for mydev should not be released until the file is closed. For
structs like mapped_device and dm_table I removed the atomic_t holders
variable and am just using the kobject ref count.
The patch was built and tested against 2.6.0-test9. I have also only
tested against the v4 ioctl.
Mike Christie
mikenc at us.ibm.com
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: dm_sysfs.patch
URL: <http://listman.redhat.com/archives/dm-devel/attachments/20031115/5d1ba20b/attachment.ksh>
More information about the dm-devel
mailing list