Skip to content

A couple of lockdep fixes

Josef Bacik linux-btrfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2btrfs: init sysfs for devices outside of the chunk_mutexfs/btrfs/volumes.c+4 -31 reply
2/2btrfs: do not create raid sysfs entries under chunk_mutexfs/btrfs/block-group.c fs/btrfs/sysfs.c+42 -62 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/2] A couple of lockdep fixes

Hello,

These are the last two lockdep splats I'm able to see in my testing. We have like 4 variations of the same lockdep splat that's addressed by

btrfs: do not create raid sysfs entries under chunk_mutex

Basically this particular dependency pulls in the kernfs_mutex under the chunk_mutex, and so we have like 4 issues in github with slightly different splats, but are all fixed by that fix. With these two patches (and the one I sent the other day for add_missing_dev) I haven't hit any lockdep splats in 6 runs of xfstests on 3 different VMs in the last 12 hours. That means it should take Dave at least 2 runs before he hits a new one. Thanks,

Josef Bacik (2):
btrfs: init sysfs for devices outside of the chunk_mutex
btrfs: do not create raid sysfs entries under chunk_mutex

 fs/btrfs/block-group.c | 23 +++++++++++++++++++----
 fs/btrfs/sysfs.c       | 25 +++++++++++++++++++++++--
 fs/btrfs/volumes.c     |  7 ++++---
 3 files changed, 46 insertions(+), 9 deletions(-)
Signature · 1 line
2.26.2