Home
last modified time | relevance | path

Searched hist:"59 a7405161425df39d33faabf9f97c101fcb75d9" (Results 1 – 2 of 2) sorted by relevance

/linux/fs/bcachefs/
H A Dalloc_background.cdiff 59a7405161425df39d33faabf9f97c101fcb75d9 Sat Mar 06 00:00:55 CET 2021 Kent Overstreet <kent.overstreet@gmail.com> bcachefs: Create allocator threads when allocating filesystem

We're seeing failures to mount because of a failure to start the
allocator threads, which currently happens fairly late in the mount
process, after walking all metadata, and kthread_create() fails if
something has tried to kill the mount process, which is probably not
what we want.

This patch avoids this issue by creating, but not starting, the
allocator threads when we preallocate all of our other in memory data
structures.

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
H A Dsuper.cdiff 59a7405161425df39d33faabf9f97c101fcb75d9 Sat Mar 06 00:00:55 CET 2021 Kent Overstreet <kent.overstreet@gmail.com> bcachefs: Create allocator threads when allocating filesystem

We're seeing failures to mount because of a failure to start the
allocator threads, which currently happens fairly late in the mount
process, after walking all metadata, and kthread_create() fails if
something has tried to kill the mount process, which is probably not
what we want.

This patch avoids this issue by creating, but not starting, the
allocator threads when we preallocate all of our other in memory data
structures.

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>