diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2018-06-08 03:52:54 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2018-06-08 17:41:17 +0300 |
commit | 28dec870aaf704af1421ac014f7f8abf4cac7c69 (patch) | |
tree | 8eeb2a26a9b8276cbe966ff77aae106f48c21221 /drivers/nvme | |
parent | 2a2a4c510b761e800098992cac61281c86527e5d (diff) |
md: Unify mddev destruction paths
Previously, mddev_put() had a couple different paths for freeing a
mddev, due to the fact that the kobject wasn't initialized when the
mddev was first allocated. If we move the kobject_init() to when it's
first allocated and just use kobject_add() later, we can clean all this
up.
This also removes a hack in mddev_put() to avoid freeing biosets under a
spinlock, which involved copying biosets on the stack after the reset
bioset_init() changes.
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/nvme')
0 files changed, 0 insertions, 0 deletions