This series adds the basics for introducing a maximum transfer length to the block layer. Its main purpose is currently avoiding that a multiwrite_merge exceeds the max_xfer_len of an attached iSCSI LUN. This is a required bug fix.
Discussed reporting of this maximum in the SCSI Disk Inquiry Emulation of the Block Limits VPD is currently not added as we do not import any of the other limits there. This has to be addresses in a seperate series. v1->v2: do not throw errors but generate trace events in Patch 2 [Paolo] Peter Lieven (4): BlockLimits: introduce max_transfer_length block: immediately cancel oversized read/write requests block/iscsi: set max_transfer_length block: avoid creating oversized writes in multiwrite_merge block.c | 23 +++++++++++++++++++++++ block/iscsi.c | 12 ++++++++++-- include/block/block_int.h | 3 +++ trace-events | 2 ++ 4 files changed, 38 insertions(+), 2 deletions(-) -- 1.7.9.5