openzfsonwindows / openzfs

OpenZFS on Linux and FreeBSD
https://openzfs.github.io/openzfs-docs
Other
455 stars 16 forks source link

Check SPL free thread is running before trying to set memory pressure. #338

Closed datacore-rm closed 10 months ago

datacore-rm commented 10 months ago

As discussed in https://github.com/openzfsonwindows/openzfs/issues/336, the memory allocation failed during init. The free thread was not running and its cond var/mutex was not initialized. So checking free thread is running before trying to set the memory pressure.

lundman commented 10 months ago

Thanks for doing this, LGTM.