diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2018-06-08 02:52:54 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2018-06-08 16:41:17 +0200 |
commit | 28dec870aaf704af1421ac014f7f8abf4cac7c69 (patch) | |
tree | 8eeb2a26a9b8276cbe966ff77aae106f48c21221 /drivers/nvme | |
parent | dm: use bioset_init_from_src() to copy bio_set (diff) | |
download | linux-28dec870aaf704af1421ac014f7f8abf4cac7c69.tar.xz linux-28dec870aaf704af1421ac014f7f8abf4cac7c69.zip |
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