]> git.karo-electronics.de Git - linux-beck.git/commit
bcache: Fix a sysfs splat on shutdown
authorKent Overstreet <kmo@daterainc.com>
Thu, 11 Jul 2013 04:25:02 +0000 (21:25 -0700)
committerKent Overstreet <kmo@daterainc.com>
Fri, 12 Jul 2013 07:22:47 +0000 (00:22 -0700)
commitc9502ea4424b31728703d113fc6b30bfead14633
tree5ce21818de392f7873708f8db65b031223b04c2e
parent54d12f2b4fd0f218590d1490b41a18d0e2328a9a
bcache: Fix a sysfs splat on shutdown

If we stopped a bcache device when we were already detaching (or
something like that), bcache_device_unlink() would try to remove a
symlink from sysfs that was already gone because the bcache dev kobject
had already been removed from sysfs.

So keep track of whether we've removed stuff from sysfs.

Signed-off-by: Kent Overstreet <kmo@daterainc.com>
Cc: linux-stable <stable@vger.kernel.org> # >= v3.10
drivers/md/bcache/bcache.h
drivers/md/bcache/super.c