diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2022-02-16 06:23:06 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:09:24 -0400 |
commit | bf7e49a4ae564108d08d314e514a6f802748d73b (patch) | |
tree | 230e1732d8563db748119f68bc787fff8cfce918 /fs/bcachefs/disk_groups.c | |
parent | 2232fa397c2be92ed80ee48d52de98a1a2916b06 (diff) |
bcachefs: Change bch2_dev_lookup() to not use lookup_bdev()
bch2_dev_lookup() is used from the extended attribute set methods, for
setting the target options, where we're already holding an inode lock -
it turns out pathname lookups also take inode locks, so that was
susceptible to deadlocks.
Fortunately we already stash the device name in ca->name. This does
change user-visible behaviour though: instead of specifying e.g.
/dev/sda1, user must now specify sda1.
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Diffstat (limited to 'fs/bcachefs/disk_groups.c')
0 files changed, 0 insertions, 0 deletions