From: Kent Overstreet Date: Thu, 11 Jul 2013 04:25:02 +0000 (-0700) Subject: bcache: Fix a sysfs splat on shutdown X-Git-Tag: v3.11-rc3~32^2^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c9502ea4424b31728703d113fc6b30bfead14633;p=pandora-kernel.git 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 Cc: linux-stable # >= v3.10 --- Reading git-diff-tree failed