Re: [PATCH v3 2/2] dm: Improve zone resource limits handling

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> +	/*
> +	 * If the limits are larger than the number of mapped sequential zones,
> +	 * assume no limits. Note that blk_revalidate_disk_zones() also executes
> +	 * this adjustment, but only for mapped devices that use zone write
> +	 * plugging, that is, for mapped devices needing zone append emulation.
> +	 * So for DM devices using native zone append of the target devices, we
> +	 * need to adjust the zone resource limits here.
> +	 */
> +	if (lim->max_active_zones > zlim.mapped_nr_seq_zones)
> +		lim->max_active_zones = 0;
> +	if (lim->max_open_zones > zlim.mapped_nr_seq_zones)
> +		lim->max_open_zones = 0;

Is there any good reason to not just do this unconditionally in common
code?





[Index of Archives]     [DM Crypt]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Packaging]     [Fedora SELinux]     [Yosemite Discussion]     [KDE Users]     [Fedora Docs]

  Powered by Linux