linux/block
Bart Van Assche f05d1ba787 blk-mq: Only unregister hctxs for which registration succeeded
Hctx unregistration involves calling kobject_del(). kobject_del()
must not be called if kobject_add() has not been called. Hence in
the error path only unregister hctxs for which registration succeeded.

Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>
Cc: Omar Sandoval <osandov@fb.com>
Cc: Hannes Reinecke <hare@suse.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
2017-04-26 15:09:04 -06:00
..
partitions
badblocks.c
bfq-cgroup.c
bfq-iosched.c block, bfq: don't dereference bic before null checking it 2017-04-20 08:19:23 -06:00
bfq-iosched.h bfq: fix compile error if CONFIG_CGROUPS=n 2017-04-20 09:39:12 -06:00
bfq-wf2q.c
bio-integrity.c
bio.c
blk-cgroup.c
blk-core.c block: remove the errors field from struct request 2017-04-20 12:16:10 -06:00
blk-exec.c block: remove the errors field from struct request 2017-04-20 12:16:10 -06:00
blk-flush.c
blk-integrity.c block: fix blk_integrity_register to use template's interval_exp if not 0 2017-04-23 12:59:56 -06:00
blk-ioc.c
blk-lib.c
blk-map.c
blk-merge.c
blk-mq-cpumap.c
blk-mq-debugfs.c blk-mq-debugfs: Rename functions for registering and unregistering the mq directory 2017-04-26 15:09:04 -06:00
blk-mq-pci.c
blk-mq-sched.c blk-mq: Remove blk_mq_sched_move_to_dispatch() 2017-04-20 17:28:30 -06:00
blk-mq-sched.h blk-mq: Remove blk_mq_sched_move_to_dispatch() 2017-04-20 17:28:30 -06:00
blk-mq-sysfs.c blk-mq: Only unregister hctxs for which registration succeeded 2017-04-26 15:09:04 -06:00
blk-mq-tag.c
blk-mq-tag.h
blk-mq-virtio.c
blk-mq.c blk-mq: Fix preempt count imbalance 2017-04-21 12:00:40 -06:00
blk-mq.h blk-mq-debugfs: Rename functions for registering and unregistering the mq directory 2017-04-26 15:09:04 -06:00
blk-settings.c
blk-softirq.c
blk-stat.c blk-stat: kill blk_stat_rq_ddir() 2017-04-21 07:56:23 -06:00
blk-stat.h blk-stat: kill blk_stat_rq_ddir() 2017-04-21 07:56:23 -06:00
blk-sysfs.c blk-mq: Register <dev>/queue/mq after having registered <dev>/queue 2017-04-26 15:09:04 -06:00
blk-tag.c
blk-throttle.c blk-throttle: fix unused variable warning with BLK_DEV_THROTTLING_LOW=n 2017-04-20 09:41:36 -06:00
blk-timeout.c block: remove the errors field from struct request 2017-04-20 12:16:10 -06:00
blk-wbt.c blk-stat: kill blk_stat_rq_ddir() 2017-04-21 07:56:23 -06:00
blk-wbt.h
blk-zoned.c
blk.h
bounce.c
bsg-lib.c scsi: introduce a result field in struct scsi_request 2017-04-20 12:16:10 -06:00
bsg.c scsi: introduce a result field in struct scsi_request 2017-04-20 12:16:10 -06:00
cfq-iosched.c
cmdline-parser.c
compat_ioctl.c
deadline-iosched.c
elevator.c
genhd.c
ioctl.c
ioprio.c block: Optimize ioprio_best() 2017-04-19 17:38:36 -06:00
Kconfig
Kconfig.iosched
kyber-iosched.c blk-stat: convert blk-stat bucket callback to signed 2017-04-20 15:29:16 -06:00
Makefile
mq-deadline.c
noop-iosched.c
opal_proto.h
partition-generic.c block: get rid of blk_integrity_revalidate() 2017-04-21 14:17:27 -06:00
scsi_ioctl.c scsi: introduce a result field in struct scsi_request 2017-04-20 12:16:10 -06:00
sed-opal.c
t10-pi.c