/[linux-patches]/genpatches-2.6/trunk/2.6.14/1454_15.5_dm-bdev-release.patch
Gentoo

Contents of /genpatches-2.6/trunk/2.6.14/1454_15.5_dm-bdev-release.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 328 - (show annotations) (download) (as text)
Tue Mar 14 13:34:17 2006 UTC (14 years, 8 months ago) by johnm
File MIME type: text/x-diff
File size: 1064 byte(s)
2.6.14-11, rebase against local tree
1 From: Jun'ichi Nomura <j-nomura@ce.jp.nec.com>
2 Date: Fri, 24 Feb 2006 21:04:24 +0000 (-0800)
3 Subject: [PATCH] dm: missing bdput/thaw_bdev at removal
4 X-Git-Url: http://www.kernel.org/git/?p=linux/kernel/git/chrisw/linux-2.6.15.y.git;a=commitdiff;h=2687a132e9d6e5e9249fc2b961ab37cf185dd3c8
5
6 [PATCH] dm: missing bdput/thaw_bdev at removal
7
8 Need to unfreeze and release bdev otherwise the bdev inode with
9 inconsistent state is reused later and cause problem.
10
11 Signed-off-by: Jun'ichi Nomura <j-nomura@ce.jp.nec.com>
12 Acked-by: Alasdair G Kergon <agk@redhat.com>
13 Cc: <stable@kernel.org>
14 Signed-off-by: Andrew Morton <akpm@osdl.org>
15 [chrisw: backport to 2.6.15]
16 Signed-off-by: Chris Wright <chrisw@sous-sol.org>
17 ---
18
19 --- a/drivers/md/dm.c
20 +++ b/drivers/md/dm.c
21 @@ -812,6 +812,10 @@ static struct mapped_device *alloc_dev(u
22
23 static void free_dev(struct mapped_device *md)
24 {
25 + if (md->frozen_bdev) {
26 + thaw_bdev(md->frozen_bdev, NULL);
27 + bdput(md->frozen_bdev);
28 + }
29 free_minor(md->disk->first_minor);
30 mempool_destroy(md->tio_pool);
31 mempool_destroy(md->io_pool);

  ViewVC Help
Powered by ViewVC 1.1.20