aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md
diff options
context:
space:
mode:
authorMikulas Patocka <mpatocka@redhat.com>2009-01-05 22:04:53 -0500
committerAlasdair G Kergon <agk@redhat.com>2009-01-05 22:04:53 -0500
commita1b51e98676932d031f5eec1325b2df4bbdc8f26 (patch)
tree0dda5c172f6ef1880dbc9eafb9eb6d404c9447c6 /drivers/md
parentfe0bdec68b77020281dc814805edfe594ae89e0f (diff)
dm table: drop reference at unbind
Move one dm_table_put() so that the last reference in the thread gets dropped in __unbind(). This is required for a following patch, dm-table-rework-reference-counting.patch, which will change the logic in such a way that table destructor is called only at specific points in the code. Signed-off-by: Mikulas Patocka <mpatocka@redhat.com> Signed-off-by: Alasdair G Kergon <agk@redhat.com>
Diffstat (limited to 'drivers/md')
-rw-r--r--drivers/md/dm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/dm.c b/drivers/md/dm.c
index 421c9f02d8ca..82371412029f 100644
--- a/drivers/md/dm.c
+++ b/drivers/md/dm.c
@@ -1330,8 +1330,8 @@ void dm_put(struct mapped_device *md)
1330 dm_table_presuspend_targets(map); 1330 dm_table_presuspend_targets(map);
1331 dm_table_postsuspend_targets(map); 1331 dm_table_postsuspend_targets(map);
1332 } 1332 }
1333 __unbind(md);
1334 dm_table_put(map); 1333 dm_table_put(map);
1334 __unbind(md);
1335 free_dev(md); 1335 free_dev(md);
1336 } 1336 }
1337} 1337}