Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sg: Improve zbc_sg_get_max_cmd_blocks()
Some HBAs report a maximum SG count equal to the the device reported count + 1 for handling buffer alignment internally. This leads to errors if the maximum command size is calculated using that incremented value. So also get the maximum reported command size and preferably use this value rather than the SG count times system page size as the maximum command size. Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com>
- Loading branch information