<font size=2 face="sans-serif">Hi,</font>
<br>
<br><font size=2 face="sans-serif">I'm a newbie on dm and all this stuff,
but I'm wondering why "max_segments" of all dm's queue is always
128 (cat /sys/block/dm-*/queue/max_segments), even if all devices used
in the dm have another value (cat /sys/devices/pci0000:00/0000:00:1f.2/host0/scsi_host/host0/sg_tablesize
: 168).</font>
<br>
<br><font size=2 face="sans-serif">I looked over the source code of dm_calculate_queue_limits,
and saw that limits of all devices are combined with default limits (blk_set_default_limits(limits);).
But, the value used is always the min_not_zero, so always 128, the default
value.</font>
<br>
<br><font size=2 face="sans-serif">As I understand, even if all devices
have big limits, default values will be used.</font>
<br><font size=2 face="sans-serif">Is my understanding wrong or there is
a bug ?</font>
<br>
<br><font size=2 face="sans-serif">Thank you to explain me the dm operation.</font>
<br>
<br><font size=2 face="sans-serif">Regards</font>
<br>
<br><font size=2 face="sans-serif">Benoit Welterlen</font>