]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 3 Mar 2016 23:07:09 +0000 (15:07 -0800)
commitd81b4c865e68a2db5997a6311dfe5c007dc16b7a
tree4ac3229d0651d615f5e630fbc7621cec2140cd68
parent8e086f9f3cf528eb27708618cc45ee3485d84cf2
bcache: unregister reboot notifier if bcache fails to unregister device

commit 2ecf0cdb2b437402110ab57546e02abfa68a716b upstream.

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>
Signed-off-by: Jens Axboe <axboe@fb.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/md/bcache/super.c