aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/nvme/target/admin-cmd.c
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2018-06-07 20:52:54 -0400
committerJens Axboe <axboe@kernel.dk>2018-06-08 08:41:17 -0600
commit28dec870aaf704af1421ac014f7f8abf4cac7c69 (patch)
tree8eeb2a26a9b8276cbe966ff77aae106f48c21221 /drivers/nvme/target/admin-cmd.c
parentdm: use bioset_init_from_src() to copy bio_set (diff)
downloadlinux-dev-28dec870aaf704af1421ac014f7f8abf4cac7c69.tar.xz
linux-dev-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 '')
0 files changed, 0 insertions, 0 deletions