Skip to content
Snippets Groups Projects
Commit 51a0bb0c authored by Milan Broz's avatar Milan Broz Committed by Jens Axboe
Browse files

loop: Properly clear sysfs in autoclear mode


In autoclear mode bdev is NULL but the sysfs
entry should be destroyed otherwise this warning appears:

WARNING: at fs/sysfs/dir.c:451 sysfs_add_one+0x82/0x95()
sysfs: cannot create duplicate filename '/devices/virtual/block/loop0/loop'

Fixes commit ee862730

Signed-off-by: default avatarMilan Broz <mbroz@redhat.com>
Signed-off-by: default avatarJens Axboe <jaxboe@fusionio.com>
parent 12ba8d1e
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment