]> git.baikalelectronics.ru Git - kernel.git/commit
bcache: Add comments for blkdev_put() in registration code path
authorColy Li <colyli@suse.de>
Wed, 24 Apr 2019 16:48:38 +0000 (00:48 +0800)
committerJens Axboe <axboe@kernel.dk>
Wed, 24 Apr 2019 16:56:28 +0000 (10:56 -0600)
commit7d6f9afc25c0f6a58e2a2e513c083ef7269d62f6
tree48f743bf4650553de493cb3bfb41edc89441574b
parent0784ffd2b597b0589a129e631bb1a24822a08123
bcache: Add comments for blkdev_put() in registration code path

Add comments to explain why in register_bcache() blkdev_put() won't
be called in two location. Add comments to explain why blkdev_put()
must be called in register_cache() when cache_alloc() failed.

Signed-off-by: Coly Li <colyli@suse.de>
Reviewed-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/md/bcache/super.c