Skip to content

Fixes for potential deadlock during reboot

Coly Li linux-block 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4bcache: avoid a deadlock in bcache_reboot()drivers/md/bcache/super.c drivers/md/bcache/sysfs.c+65 -10 replies
2/4bcache: acquire bch_register_lock later in cached_dev_detach_finish()drivers/md/bcache/super.c+2 -10 replies
3/4bcache: acquire bch_register_lock later in cached_dev_free()drivers/md/bcache/super.c+2 -20 replies
4/4bcache: fix potential deadlock in cached_def_free()drivers/md/bcache/super.c drivers/md/bcache/writeback.c+4 -20 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/4] Fixes for potential deadlock during reboot

Hi folks,

Recently during my for-4.3 testing, I observe some lockdep warnings for potential deadlock during reboot the kernel. Such potential deadlocks are very hard to trigger in real life, but fix them and make lockdep happy is still worthy IMHO.

This series is an effort to fix the potential deadlock issues, since they are not critical stability fixes, they won't be CCed to stable mailing list.

Thanks in advance for any commnet or review.

Coly Li
---

Coly Li (4):
bcache: avoid a deadlock in bcache_reboot()
bcache: acquire bch_register_lock later in cached_dev_detach_finish()
bcache: acquire bch_register_lock later in cached_dev_free()
bcache: fix potential deadlock in cached_def_free()

 drivers/md/bcache/super.c     | 49 +++++++++++++++++++++++++++++++++++++------
 drivers/md/bcache/sysfs.c     | 26 +++++++++++++++++++++++
 drivers/md/bcache/writeback.c |  4 ++++
 3 files changed, 73 insertions(+), 6 deletions(-)
Signature · 1 line
2.16.4