file-posix: fix refresh_limits for SCSI devices
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest3 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | scsi-generic: pass max_segments via max_iov field in BlockLimitsblock/ hw/ | +5 | 0 replies | |
| 2/3 | file-posix: try BLKSECTGET on block devices too, do not round to power of 2block/ | +13 | 0 replies | |
| 3/3 | file-posix: fix max_iov for /dev/sg devicesblock/ | +11 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/3] file-posix: fix refresh_limits for SCSI devices
refresh_limits is not doing anything for block devices, and is retrieving the maximum number of s/g list entries incorrectly for character devices.
Patches 2-3 fix these problems, while patch 1 is a small improvement to avoid making the BlockLimits unnecessarily restrictive when SG_IO is not in use.
Paolo
Paolo Bonzini (3):
scsi-generic: pass max_segments via max_iov field in BlockLimits
file-posix: try BLKSECTGET on block devices too, do not round to power
of 2
file-posix: fix max_iov for /dev/sg devices
block/file-posix.c | 37 +++++++++++++++++++++++-------------- hw/scsi/scsi-generic.c | 6 ++++-- 2 files changed, 27 insertions(+), 16 deletions(-)
Signature · 1 line
2.30.1