bcachefs: Fix potential sleeping during mount
authorDaniel J Blueman <daniel@quora.org>
Sun, 12 Nov 2023 00:38:41 +0000 (00:38 +0000)
committerKent Overstreet <kent.overstreet@linux.dev>
Wed, 15 Nov 2023 04:44:43 +0000 (23:44 -0500)
commitb783fc4d1366658200bf759e1010655a9e2e145c
treed4cb69e635d809e06a666017dd1e6eba12f54ebe
parent069749688ea4bbaeff0ca3b229b443ea96b03757
bcachefs: Fix potential sleeping during mount

During mount, bcachefs mount option processing may sleep while allocating a string buffer.

Fix this by reference counting in order to take the atomic path.

Signed-off-by: Daniel J Blueman <daniel@quora.org>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/disk_groups.c