* [git pull] device-mapper updates for 3.10
@ 2013-05-10 10:20 Alasdair G Kergon
2013-05-10 10:32 ` Hannes Reinecke
2013-05-10 14:01 ` [dm-devel] " Alasdair G Kergon
0 siblings, 2 replies; 4+ messages in thread
From: Alasdair G Kergon @ 2013-05-10 10:20 UTC (permalink / raw)
To: Linus Torvalds
Cc: dm-devel, linux-kernel, Joe Thornber, Mike Snitzer,
Mikulas Patocka, stable, Bharata B Rao, Wei Yongjun
Please pull from:
git://git.kernel.org/pub/scm/linux/kernel/git/agk/linux-dm tags/dm-3.10-changes
to get the following device-mapper updates for 3.10.
Thanks,
Alasdair
----------------------------------------------------------------
Allow devices that hold metadata for the device-mapper thin
provisioning target to be extended easily; allow WRITE SAME on
multipath devices; an assortment of little fixes and clean-ups.
----------------------------------------------------------------
Alasdair G Kergon (3):
dm: document iterate_devices
dm cache policy: fix description of lookup fn
dm cache: move config fns
Joe Thornber (12):
dm cache: tune migration throttling
dm persistent data: fix error message typos
dm cache: fix typos in comments
dm cache: replace memcpy with struct assignment
dm thin: refactor data dev resize
dm thin: open dev read only when possible
dm persistent data: support space map resizing
dm thin: detect metadata device resizing
dm persistent data: add threshold callback to space map
dm persistent metadata: add space map threshold callback
dm thin: generate event when metadata threshold passed
dm cache: set config value
Mike Snitzer (3):
dm stripe: fix regression in stripe_width calculation
dm table: fix write same support
dm mpath: enable WRITE SAME support
Mikulas Patocka (1):
dm bufio: avoid a possible __vmalloc deadlock
Wei Yongjun (2):
dm cache: fix error return code in cache_create
dm snapshot: fix error return code in snapshot_ctr
drivers/md/dm-bufio.c | 24 ++-
drivers/md/dm-cache-metadata.c | 4 +-
drivers/md/dm-cache-policy.h | 4 +-
drivers/md/dm-cache-target.c | 100 +++++-----
drivers/md/dm-mpath.c | 1 +
drivers/md/dm-snap.c | 1 +
drivers/md/dm-stripe.c | 11 +-
drivers/md/dm-table.c | 2 +-
drivers/md/dm-thin-metadata.c | 36 +++-
drivers/md/dm-thin-metadata.h | 7 +
drivers/md/dm-thin.c | 200 ++++++++++++++++----
drivers/md/persistent-data/dm-space-map-disk.c | 3 +-
drivers/md/persistent-data/dm-space-map-metadata.c | 127 +++++++++++--
drivers/md/persistent-data/dm-space-map.h | 23 +++
include/linux/device-mapper.h | 15 ++
15 files changed, 442 insertions(+), 116 deletions(-)
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [git pull] device-mapper updates for 3.10
2013-05-10 10:20 [git pull] device-mapper updates for 3.10 Alasdair G Kergon
@ 2013-05-10 10:32 ` Hannes Reinecke
[not found] ` <20130510103524.GG1396@agk-dp.fab.redhat.com>
2013-05-10 14:01 ` [dm-devel] " Alasdair G Kergon
1 sibling, 1 reply; 4+ messages in thread
From: Hannes Reinecke @ 2013-05-10 10:32 UTC (permalink / raw)
To: Alasdair G Kergon; +Cc: dm-devel
On 05/10/2013 12:20 PM, Alasdair G Kergon wrote:
> Please pull from:
>
> git://git.kernel.org/pub/scm/linux/kernel/git/agk/linux-dm tags/dm-3.10-changes
>
> to get the following device-mapper updates for 3.10.
>
Please consider folding in
"dm-multipath: Drop table when retrying ioctl"
that fixes a rather nasty multipath deadlock.
Cheers,
Hannes
--
Dr. Hannes Reinecke zSeries & Storage
hare@suse.de +49 911 74053 688
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg
GF: J. Hawn, J. Guild, F. Imendörffer, HRB 16746 (AG Nürnberg)
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [git pull] device-mapper updates for 3.10
[not found] ` <20130510103524.GG1396@agk-dp.fab.redhat.com>
@ 2013-05-10 10:40 ` Hannes Reinecke
0 siblings, 0 replies; 4+ messages in thread
From: Hannes Reinecke @ 2013-05-10 10:40 UTC (permalink / raw)
To: Alasdair G Kergon; +Cc: device-mapper development
[-- Attachment #1: Type: text/plain, Size: 576 bytes --]
On 05/10/2013 12:35 PM, Alasdair G Kergon wrote:
> On Fri, May 10, 2013 at 12:32:29PM +0200, Hannes Reinecke wrote:
>> "dm-multipath: Drop table when retrying ioctl"
>
> That one's not showing up: direct link or mail me it?
>
Here it is.
I _thought_ to have it sent to dm-devel, but apparently not.
Wonder what happened there...
Cheers,
Hannes
--
Dr. Hannes Reinecke zSeries & Storage
hare@suse.de +49 911 74053 688
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg
GF: J. Hawn, J. Guild, F. Imendörffer, HRB 16746 (AG Nürnberg)
[-- Attachment #2: dm-multipath-drop-table-when-retrying-ioctl.patch --]
[-- Type: text/x-patch, Size: 2241 bytes --]
From 3e501ba7080d7913e85361ea0cef5b5c8fd1f153 Mon Sep 17 00:00:00 2001
From: Hannes Reinecke <hare@suse.de>
Date: Tue, 23 Apr 2013 12:33:52 +0200
Subject: [PATCH] dm-multipath: Drop table when retrying ioctl
When multipath needs to retry an ioctl the reference to the
current live table needs to be dropped. Otherwise a deadlock
occurs when all paths are down:
- dm_blk_ioctl takes a reference to the current table
and spins in multipath_iotcl().
- A new table is being loaded, but upon resume the process
hangs in dm_table_destroy() waiting for references to
drop to zero.
With this patch the reference to the old table is dropped
prior to retry, thereby avoiding the deadlock.
Cc: Alasdair Kergon <agk@redhat.com>
Cc: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Hannes Reinecke <hare@suse.de>
diff --git a/drivers/md/dm-mpath.c b/drivers/md/dm-mpath.c
index 51bb816..fb27edc 100644
--- a/drivers/md/dm-mpath.c
+++ b/drivers/md/dm-mpath.c
@@ -1578,7 +1578,7 @@ again:
}
if ((pgpath && m->queue_io) || (!pgpath && m->queue_if_no_path))
- r = -EAGAIN;
+ r = -ENOTCONN;
else if (!bdev)
r = -EIO;
@@ -1590,11 +1590,8 @@ again:
if (!r && ti->len != i_size_read(bdev->bd_inode) >> SECTOR_SHIFT)
r = scsi_verify_blk_ioctl(NULL, cmd);
- if (r == -EAGAIN && !fatal_signal_pending(current)) {
+ if (r == -ENOTCONN && !fatal_signal_pending(current))
queue_work(kmultipathd, &m->process_queued_ios);
- msleep(10);
- goto again;
- }
return r ? : __blkdev_driver_ioctl(bdev, mode, cmd, arg);
}
diff --git a/drivers/md/dm.c b/drivers/md/dm.c
index 9a0bdad..cd749bf 100644
--- a/drivers/md/dm.c
+++ b/drivers/md/dm.c
@@ -388,10 +388,12 @@ static int dm_blk_ioctl(struct block_device *bdev, fmode_t mode,
unsigned int cmd, unsigned long arg)
{
struct mapped_device *md = bdev->bd_disk->private_data;
- struct dm_table *map = dm_get_live_table(md);
+ struct dm_table *map;
struct dm_target *tgt;
int r = -ENOTTY;
+retry:
+ map = dm_get_live_table(md);
if (!map || !dm_table_get_size(map))
goto out;
@@ -412,6 +414,11 @@ static int dm_blk_ioctl(struct block_device *bdev, fmode_t mode,
out:
dm_table_put(map);
+ if (r == -ENOTCONN) {
+ msleep(10);
+ goto retry;
+ }
+
return r;
}
[-- Attachment #3: Type: text/plain, Size: 0 bytes --]
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [dm-devel] [git pull] device-mapper updates for 3.10
2013-05-10 10:20 [git pull] device-mapper updates for 3.10 Alasdair G Kergon
2013-05-10 10:32 ` Hannes Reinecke
@ 2013-05-10 14:01 ` Alasdair G Kergon
1 sibling, 0 replies; 4+ messages in thread
From: Alasdair G Kergon @ 2013-05-10 14:01 UTC (permalink / raw)
To: Linus Torvalds
Cc: dm-devel, linux-kernel, Joe Thornber, Mike Snitzer,
Mikulas Patocka, stable, Bharata B Rao, Wei Yongjun
On Fri, May 10, 2013 at 11:20:29AM +0100, Alasdair G Kergon wrote:
> Please pull from:
> git://git.kernel.org/pub/scm/linux/kernel/git/agk/linux-dm tags/dm-3.10-changes
And the kbuild test robot just spotted that I lost a line from one of
the patches which meant the thin threshold notification wouldn't
happen, sorry.
Take two...
Alasdair
Please pull from:
git://git.kernel.org/pub/scm/linux/kernel/git/agk/linux-dm tags/dm-3.10-changes-2
to get the following device-mapper updates for 3.10.
----------------------------------------------------------------
Allow devices that hold metadata for the device-mapper thin
provisioning target to be extended easily; allow WRITE SAME on
multipath devices; an assortment of little fixes and clean-ups.
----------------------------------------------------------------
Alasdair G Kergon (3):
dm: document iterate_devices
dm cache policy: fix description of lookup fn
dm cache: move config fns
Joe Thornber (12):
dm cache: tune migration throttling
dm persistent data: fix error message typos
dm cache: fix typos in comments
dm cache: replace memcpy with struct assignment
dm thin: refactor data dev resize
dm thin: open dev read only when possible
dm persistent data: support space map resizing
dm thin: detect metadata device resizing
dm persistent data: add threshold callback to space map
dm persistent metadata: add space map threshold callback
dm thin: generate event when metadata threshold passed
dm cache: set config value
Mike Snitzer (3):
dm stripe: fix regression in stripe_width calculation
dm table: fix write same support
dm mpath: enable WRITE SAME support
Mikulas Patocka (1):
dm bufio: avoid a possible __vmalloc deadlock
Wei Yongjun (2):
dm cache: fix error return code in cache_create
dm snapshot: fix error return code in snapshot_ctr
drivers/md/dm-bufio.c | 24 ++-
drivers/md/dm-cache-metadata.c | 4 +-
drivers/md/dm-cache-policy.h | 4 +-
drivers/md/dm-cache-target.c | 100 +++++-----
drivers/md/dm-mpath.c | 1 +
drivers/md/dm-snap.c | 1 +
drivers/md/dm-stripe.c | 11 +-
drivers/md/dm-table.c | 2 +-
drivers/md/dm-thin-metadata.c | 36 +++-
drivers/md/dm-thin-metadata.h | 7 +
drivers/md/dm-thin.c | 200 ++++++++++++++++----
drivers/md/persistent-data/dm-space-map-disk.c | 3 +-
drivers/md/persistent-data/dm-space-map-metadata.c | 127 +++++++++++--
drivers/md/persistent-data/dm-space-map.h | 23 +++
include/linux/device-mapper.h | 15 ++
15 files changed, 442 insertions(+), 116 deletions(-)
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-05-10 14:01 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-10 10:20 [git pull] device-mapper updates for 3.10 Alasdair G Kergon
2013-05-10 10:32 ` Hannes Reinecke
[not found] ` <20130510103524.GG1396@agk-dp.fab.redhat.com>
2013-05-10 10:40 ` Hannes Reinecke
2013-05-10 14:01 ` [dm-devel] " Alasdair G Kergon
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.