]> 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)
commit3dd985e20a1958bfaddcadd23a571ca2b0ef3e9d
tree0dda5c172f6ef1880dbc9eafb9eb6d404c9447c6
parent16fa43f25a4ae5280c4dc48b6ca5a2ee6f7735e6
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