bcache: unregister reboot notifier if bcache fails to unregister device
authorZheng Liu <wenqing.lz@taobao.com>
Mon, 30 Nov 2015 01:21:57 +0000 (17:21 -0800)
committerJens Axboe <axboe@fb.com>
Thu, 31 Dec 2015 03:23:11 +0000 (20:23 -0700)
commit2ecf0cdb2b437402110ab57546e02abfa68a716b
tree70598cf87f6206433d4ba1a3bd2584c82ae23716
parent4d4d8573a8451acc9f01cbea24b7e55f04a252fe
bcache: unregister reboot notifier if bcache fails to unregister device

In bcache_init() function it forgot to unregister reboot notifier if
bcache fails to unregister a block device.  This commit fixes this.

Signed-off-by: Zheng Liu <wenqing.lz@taobao.com>
Tested-by: Joshua Schmid <jschmid@suse.com>
Tested-by: Eric Wheeler <bcache@linux.ewheeler.net>
Cc: Kent Overstreet <kmo@daterainc.com>
Cc: stable@vger.kernel.org
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/md/bcache/super.c