• Kent Overstreet's avatar
    bcache: Fix a sysfs splat on shutdown · c9502ea4
    Kent Overstreet authored
    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: default avatarKent Overstreet <kmo@daterainc.com>
    Cc: linux-stable <stable@vger.kernel.org> # >= v3.10
    c9502ea4
super.c 48.1 KB