[Bug 909717] New: bcache: uncleared BCACHE_DEV_UNLINK_DONE flag
http://bugzilla.suse.com/show_bug.cgi?id=909717
Bug ID: 909717
Summary: bcache: uncleared BCACHE_DEV_UNLINK_DONE flag
Classification: openSUSE
Product: openSUSE Distribution
Version: 13.2
Hardware: Other
OS: Other
Status: NEW
Severity: Normal
Priority: P5 - None
Component: Kernel
Assignee: kernel-maintainers@forge.provo.novell.com
Reporter: jschmid@suse.com
QA Contact: qa-bugs@suse.de
Found By: ---
Blocker: ---
This report is from upstream. There is an uncleared flag BCACHE_DEV_UNLINK_DONE
which causes a warning and prevents a call from being executed.This is a fix
from upstream
We forget to clear BCACHE_DEV_UNLINK_DONE flag in bcache_device_attach()
function when we attach a backing device first time. After detaching this
backing device, this flag will be true and sysfs_remove_link() isn't called in
bcache_device_unlink(). Then when we attach this backing device again,
sysfs_create_link() will return EEXIST error in bcache_device_link().
So the fix is trival and we clear this flag in bcache_device_link().
Signed-off-by: Zheng Liu
http://bugzilla.suse.com/show_bug.cgi?id=909717
Joshua Schmid
http://bugzilla.suse.com/show_bug.cgi?id=909717
Oliver Neukum
participants (1)
-
bugzilla_noreply@novell.com