Re: [PATCH 4/6] block: set .bi_max_vecs as actual allocated vector number

2021-01-04 Thread Christoph Hellwig
On Wed, Dec 30, 2020 at 08:32:53AM +0800, Ming Lei wrote: > bvec_alloc() may allocate more bio vectors than requested, so set > .bi_max_vecs as > actual allocated vector number, instead of the requested number. This way can > help > fs build bigger bio because new bio often won't be allocated

[PATCH 4/6] block: set .bi_max_vecs as actual allocated vector number

2020-12-29 Thread Ming Lei
bvec_alloc() may allocate more bio vectors than requested, so set .bi_max_vecs as actual allocated vector number, instead of the requested number. This way can help fs build bigger bio because new bio often won't be allocated until the current one becomes full. Signed-off-by: Ming Lei ---