Damien,

> +     buflen = min(queue_max_sectors(disk->queue) << 9,
> +                  roundup((nrz + 1) * 64, 512));

Shouldn't this be queue_max_hw_sectors()?

max_sectors is the soft limit for filesystem reads and writes.

max_hw_sectors is the per-command maximum data transfer supported by the
controller.

-- 
Martin K. Petersen      Oracle Linux Engineering

Reply via email to