View | Details | Raw Unified | Return to bug 615656
Collapse All | Expand All

(-)file_not_specified_in_diff (-6 / +1 lines)
Line  Link Here
Commit ecdb2e257abc33ae6798d3ccba87bdafa40ef6b6, for 2.6.34, removed
Commit ecdb2e257abc33ae6798d3ccba87bdafa40ef6b6, for 2.6.34, removed
1
the dm_get() call from dm_table_get_md(). The dm-raid45 code still has
1
the dm_get() call from dm_table_get_md(). The dm-raid45 code still has
2
matching dm_put() calls for the dm_table_get_md() calls. This patch removes
2
matching dm_put() calls for the dm_table_get_md() calls. This patch removes
3
the dm_put() calls as it's causing too many reference drops and BUG_ONs.
3
the dm_put() calls as it's causing too many reference drops and BUG_ONs.
4
--
5
drivers/md/dm-raid45.c |    4 ----
4
drivers/md/dm-raid45.c |    4 ----
6
1 file changed, 4 deletions(-)
5
1 file changed, 4 deletions(-)
7
drivers/md/dm-raid45.c |    4 ----
6
drivers/md/dm-raid45.c |    4 ----
8
1 file changed, 4 deletions(-)
7
1 file changed, 4 deletions(-)
9
-- a/drivers/md/dm-raid45.c
8
++ b/drivers/md/dm-raid45.c
Lines 1567-1573 static int sc_init(struct raid_set *rs, Link Here
1567
	disk = dm_disk(md);
1567
	disk = dm_disk(md);
1568
	snprintf(sc->kc.name, sizeof(sc->kc.name), "%s-%d.%d", TARGET,
1568
	snprintf(sc->kc.name, sizeof(sc->kc.name), "%s-%d.%d", TARGET,
1569
		 disk->first_minor, atomic_inc_return(&_stripe_sc_nr));
1569
		 disk->first_minor, atomic_inc_return(&_stripe_sc_nr));
1570
	dm_put(md);
1571
	sc->kc.cache = kmem_cache_create(sc->kc.name, stripe_size(rs),
1570
	sc->kc.cache = kmem_cache_create(sc->kc.name, stripe_size(rs),
1572
					 0, 0, NULL);
1571
					 0, 0, NULL);
1573
	if (!sc->kc.cache)
1572
	if (!sc->kc.cache)
Lines 3981-3988 static void rs_set_read_ahead(struct rai Link Here
3981
			q->backing_dev_info.ra_pages = ra_pages;
3980
			q->backing_dev_info.ra_pages = ra_pages;
3982
		}
3981
		}
3983
	}
3982
	}
3984
3985
	dm_put(md);
3986
}
3983
}
3987
3984
3988
/* Set congested function. */
3985
/* Set congested function. */
Lines 3994-4000 static void rs_set_congested_fn(struct r Link Here
3994
	/* Set congested function and data. */
3991
	/* Set congested function and data. */
3995
	bdi->congested_fn = rs_congested;
3992
	bdi->congested_fn = rs_congested;
3996
	bdi->congested_data = rs;
3993
	bdi->congested_data = rs;
3997
	dm_put(md);
3998
}
3994
}
3999
3995
4000
/*
3996
/*

Return to bug 615656