<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/md/dm.c, branch linux-2.6.18.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-2.6.18.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-2.6.18.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2006-06-26T19:25:09Z</updated>
<entry>
<title>[PATCH] devfs: Last little devfs cleanups throughout the kernel tree.</title>
<updated>2006-06-26T19:25:09Z</updated>
<author>
<name>Greg Kroah-Hartman</name>
</author>
<published>2005-06-21T04:15:16Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=890fbae2818a045350b8d1e3bda61ceb88ff1d17'/>
<id>urn:sha1:890fbae2818a045350b8d1e3bda61ceb88ff1d17</id>
<content type='text'>
Just removes a few unused #defines and fixes some comments due to
devfs now being gone.

Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;
</content>
</entry>
<entry>
<title>[PATCH] dm: improve error message consistency</title>
<updated>2006-06-26T16:58:36Z</updated>
<author>
<name>Alasdair G Kergon</name>
</author>
<published>2006-06-26T07:27:35Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=72d9486169a2a8353e022813185ba2f32d7dde69'/>
<id>urn:sha1:72d9486169a2a8353e022813185ba2f32d7dde69</id>
<content type='text'>
Tidy device-mapper error messages to include context information
automatically.

Signed-off-by: Alasdair G Kergon &lt;agk@redhat.com&gt;
Signed-off-by: Andrew Morton &lt;akpm@osdl.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
</content>
</entry>
<entry>
<title>[PATCH] dm: prevent removal if open</title>
<updated>2006-06-26T16:58:36Z</updated>
<author>
<name>Alasdair G Kergon</name>
</author>
<published>2006-06-26T07:27:34Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=5c6bd75d06db512515a3781aa97e42df2faf0815'/>
<id>urn:sha1:5c6bd75d06db512515a3781aa97e42df2faf0815</id>
<content type='text'>
If you misuse the device-mapper interface (or there's a bug in your userspace
tools) it's possible to end up with 'unlinked' mapped devices that cannot be
removed until you reboot (along with uninterruptible processes).

This patch prevents you from removing a device that is still open.

It introduces dm_lock_for_deletion() which is called when a device is about to
be removed to ensure that nothing has it open and nothing further can open it.
 It uses a private open_count for this which also lets us remove one of the
problematic bdget_disk() calls elsewhere.

Signed-off-by: Alasdair G Kergon &lt;agk@redhat.com&gt;
Signed-off-by: Andrew Morton &lt;akpm@osdl.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
</content>
</entry>
<entry>
<title>[PATCH] dm: add exports</title>
<updated>2006-06-26T16:58:36Z</updated>
<author>
<name>Alasdair G Kergon</name>
</author>
<published>2006-06-26T07:27:33Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=17b2f66f2a39a4e4d1ed456f35ee3bb598e41d35'/>
<id>urn:sha1:17b2f66f2a39a4e4d1ed456f35ee3bb598e41d35</id>
<content type='text'>
Move definitions of core device-mapper functions for manipulating mapped
devices and their tables to &lt;linux/device-mapper.h&gt; advertising their
availability for use elsewhere in the kernel.

Protect the contents of device-mapper.h with ifdef __KERNEL__.  And throw
in a few formatting clean-ups and extra comments.

Signed-off-by: Alasdair G Kergon &lt;agk@redhat.com&gt;
Signed-off-by: Andrew Morton &lt;akpm@osdl.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
</content>
</entry>
<entry>
<title>[PATCH] dm: consolidate creation functions</title>
<updated>2006-06-26T16:58:36Z</updated>
<author>
<name>Alasdair G Kergon</name>
</author>
<published>2006-06-26T07:27:32Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=2b06cfff12f0f87c4bc4d4c4dd76997e72c360ba'/>
<id>urn:sha1:2b06cfff12f0f87c4bc4d4c4dd76997e72c360ba</id>
<content type='text'>
Merge dm_create() and dm_create_with_minor() by introducing the special value
DM_ANY_MINOR to request the allocation of the next available minor number.

Signed-off-by: Alasdair G Kergon &lt;agk@redhat.com&gt;
Signed-off-by: Andrew Morton &lt;akpm@osdl.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
</content>
</entry>
<entry>
<title>[PATCH] dm: fix block device initialisation</title>
<updated>2006-06-26T16:58:35Z</updated>
<author>
<name>Jeff Mahoney</name>
</author>
<published>2006-06-26T07:27:25Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=f0b04115368ff383654a3bd26baf8f4be5e81132'/>
<id>urn:sha1:f0b04115368ff383654a3bd26baf8f4be5e81132</id>
<content type='text'>
In alloc_dev(), we register the device with the block layer and then continue
to initialize the device.  But register_disk() makes the device available to
be opened before we have completed initialising it.

This patch moves the final bits of the initialization above the disk
registration.

[akpm: too late for 2.6.17 - suitable for 2.6.17.x after it has settled]

Signed-off-by: Jeff Mahoney &lt;jeffm@suse.com&gt;
Signed-off-by: Alasdair G Kergon &lt;agk@redhat.com&gt;
Cc: &lt;stable@kernel.org&gt;
Signed-off-by: Andrew Morton &lt;akpm@osdl.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
</content>
</entry>
<entry>
<title>[PATCH] dm: add module ref counting</title>
<updated>2006-06-26T16:58:35Z</updated>
<author>
<name>Jeff Mahoney</name>
</author>
<published>2006-06-26T07:27:25Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=10da4f795f965f22039aa2930b6f80964aad3ee5'/>
<id>urn:sha1:10da4f795f965f22039aa2930b6f80964aad3ee5</id>
<content type='text'>
The reference counting on dm-mod is zero if no mapped devices are open.  This
is incorrect, and can lead to an oops if the module is unloaded while mapped
devices exist.

This patch claims a reference to the module whenever a device is created, and
drops it again when the device is freed.

Devices must be removed before dm-mod is unloaded.

[akpm: too late for 2.6.17 - suitable for 2.6.17.x after it has settled]

Signed-off-by: Jeff Mahoney &lt;jeffm@suse.com&gt;
Signed-off-by: Alasdair G Kergon &lt;agk@redhat.com&gt;
Cc: &lt;stable@kernel.org&gt;
Signed-off-by: Andrew Morton &lt;akpm@osdl.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
</content>
</entry>
<entry>
<title>[PATCH] dm: add DMF_FREEING</title>
<updated>2006-06-26T16:58:34Z</updated>
<author>
<name>Jeff Mahoney</name>
</author>
<published>2006-06-26T07:27:23Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=fba9f90e568e17c326257ee293207b75880b39d6'/>
<id>urn:sha1:fba9f90e568e17c326257ee293207b75880b39d6</id>
<content type='text'>
There is a chicken and egg problem between the block layer and dm in which the
gendisk associated with a mapping keeps a reference-less pointer to the
mapped_device.

This patch uses a new flag DMF_FREEING to indicate when the mapped_device is
no longer valid.  This is checked to prevent any attempt to open the device
from succeeding while the device is being destroyed.

[akpm: too late for 2.6.17 - suitable for 2.6.17.x after it has settled]

Signed-off-by: Jeff Mahoney &lt;jeffm@suse.com&gt;
Signed-off-by: Alasdair G Kergon &lt;agk@redhat.com&gt;
Cc: &lt;stable@kernel.org&gt;
Signed-off-by: Andrew Morton &lt;akpm@osdl.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
</content>
</entry>
<entry>
<title>[PATCH] dm: change minor_lock to spinlock</title>
<updated>2006-06-26T16:58:34Z</updated>
<author>
<name>Jeff Mahoney</name>
</author>
<published>2006-06-26T07:27:22Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=f32c10b09940cffc3620ce111315ec44343fd3ca'/>
<id>urn:sha1:f32c10b09940cffc3620ce111315ec44343fd3ca</id>
<content type='text'>
While removing a device, another another thread might attempt to resurrect it.

This patch replaces the _minor_lock mutex with a spinlock and uses
atomic_dec_and_lock() to serialize reference counting in dm_put().

[akpm: too late for 2.6.17 - suitable for 2.6.17.x after it has settled]

Signed-off-by: Jeff Mahoney &lt;jeffm@suse.com&gt;
Signed-off-by: Alasdair G Kergon &lt;agk@redhat.com&gt;
Cc: &lt;stable@kernel.org&gt;
Signed-off-by: Andrew Morton &lt;akpm@osdl.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
</content>
</entry>
<entry>
<title>[PATCH] dm: move idr_pre_get</title>
<updated>2006-06-26T16:58:34Z</updated>
<author>
<name>Jeff Mahoney</name>
</author>
<published>2006-06-26T07:27:21Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=62f75c2f3244553b1290447abd1f1e6b1144d3e9'/>
<id>urn:sha1:62f75c2f3244553b1290447abd1f1e6b1144d3e9</id>
<content type='text'>
idr_pre_get() can sleep while allocating memory.

The next patch will change _minor_lock into a spinlock, so this patch moves
idr_pre_get() outside the lock in preparation.

[akpm: too late for 2.6.17 - suitable for 2.6.17.x after it has settled]

Signed-off-by: Jeff Mahoney &lt;jeffm@suse.com&gt;
Signed-off-by: Alasdair G Kergon &lt;agk@redhat.com&gt;
Cc: &lt;stable@kernel.org&gt;
Signed-off-by: Andrew Morton &lt;akpm@osdl.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
</content>
</entry>
</feed>
