]> git.baikalelectronics.ru Git - kernel.git/commit
dm table: drop reference at unbind
authorMikulas Patocka <mpatocka@redhat.com>
Tue, 6 Jan 2009 03:04:53 +0000 (03:04 +0000)
committerAlasdair G Kergon <agk@redhat.com>
Tue, 6 Jan 2009 03:04:53 +0000 (03:04 +0000)
commita1b51e98676932d031f5eec1325b2df4bbdc8f26
tree0dda5c172f6ef1880dbc9eafb9eb6d404c9447c6
parentfe0bdec68b77020281dc814805edfe594ae89e0f
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>
drivers/md/dm.c