]> git.baikalelectronics.ru Git - kernel.git/commit
bcache: add pendings_cleanup to stop pending bcache device
authorColy Li <colyli@suse.de>
Fri, 28 Jun 2019 11:59:42 +0000 (19:59 +0800)
committerJens Axboe <axboe@kernel.dk>
Fri, 28 Jun 2019 13:39:16 +0000 (07:39 -0600)
commit04a56d97d418ace77947bfb1755d5d7434e5b693
treeb07cbf630bdb53a053108e157a72e64ceef7c6f7
parent536aa8dff528154cf9e0a83f15c5201da325e0ef
bcache: add pendings_cleanup to stop pending bcache device

If a bcache device is in dirty state and its cache set is not
registered, this bcache device will not appear in /dev/bcache<N>,
and there is no way to stop it or remove the bcache kernel module.

This is an as-designed behavior, but sometimes people has to reboot
whole system to release or stop the pending backing device.

This sysfs interface may remove such pending bcache devices when
write anything into the sysfs file manually.

Signed-off-by: Coly Li <colyli@suse.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/md/bcache/super.c