[dm-devel] Re: [PATCH 1/3] sysfs representation of stacked devices (dm/md common)

Jun'ichi Nomura j-nomura at ce.jp.nec.com
Sat Feb 18 01:03:48 UTC 2006


Hi Alasdair,

Thank you for the comments.

Alasdair G Kergon wrote:
> Make sure you test this properly under low memory situations.

OK.

> dm_swap_table() mustn't block waiting for memory to become
> free (except in a controlled way e.g. with a mempool, but
> it would need more than that here).
> 
> Here, dm_swap_table() leads to kmalloc() getting called
> in sysfs_add_link().

I moved the sysfs_add_link() to the last part of dm_resume().
Directory creation/deletion are also moved in the alloc_dev/
free_dev function as kobject_register/unregister may allocate
memory.
I didn't change the part of removing symlink as it doesn't
allocate memory.

Do you think this is an acceptable approach?

-- 
Jun'ichi Nomura, NEC Solutions (America), Inc.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: stacked-device-representation-in-sysfs-2-dm.patch
Type: text/x-patch
Size: 2539 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/dm-devel/attachments/20060217/9c291454/attachment.bin>


More information about the dm-devel mailing list