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)
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

No differences found