]> www.infradead.org Git - users/jedix/linux-maple.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 20 Apr 2023 10:35:06 +0000 (12:35 +0200)
commit3103c0781257e2955ca1e05e108e42425a1ef986
treea3434efdc9082ec9315d24db82924c24e90fbeff
parent8c4b65f6c707bc07cbcd871667b5056821c5685d
btrfs: restore the thread_pool= behavior in remount for the end I/O workqueues

commit 40fac6472f22a59f5694496e179988ab4a1dfe07 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/btrfs/super.c