btrfs: restore the thread_pool= behavior in remount for the end I/O workqueues
authorChristoph Hellwig <hch@lst.de>
Tue, 28 Mar 2023 03:56:13 +0000 (12:56 +0900)
committerDavid Sterba <dsterba@suse.com>
Thu, 6 Apr 2023 14:33:08 +0000 (16:33 +0200)
commit40fac6472f22a59f5694496e179988ab4a1dfe07
treecaed98353f45d9c20c7600b80f28209de55ba71c
parent2280d425ba3599bdd85c41bd0ec8ba568f00c032
btrfs: restore the thread_pool= behavior in remount for the end I/O workqueues

Commit d7b9416fe5c5 ("btrfs: remove btrfs_end_io_wq") converted the read
and I/O handling from btrfs_workqueues to Linux workqueues, and as part
of that lost the code to apply the thread_pool= based max_active limit
on remount.  Restore it.

Fixes: d7b9416fe5c5 ("btrfs: remove btrfs_end_io_wq")
CC: stable@vger.kernel.org # 6.0+
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/super.c