]> granicus.if.org Git - zfs/commit
Set the maximum ZVOL transfer size correctly
authorTim Chase <tim@chase2k.com>
Mon, 23 Mar 2015 17:10:19 +0000 (12:10 -0500)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 25 Mar 2015 18:58:42 +0000 (11:58 -0700)
commitded576e28fe70a40e78a90e4668de8130d599380
tree394908a0734f2059cc396796657771ecd8836458
parent7b4536c710adea88f160c6f9ae140ae5279c8183
Set the maximum ZVOL transfer size correctly

ZoL had been setting max_sectors to UINT_MAX, but until Linux 3.19, it
the kernel artifically capped it at 1024 (BLK_DEF_MAX_SECTORS).
This cap was removed in torvalds/linux@34b48db.  This patch changes
it to DMU_MAX_ACCESS (in sectors) and also changes the ASSERT in
dmu_tx_hold_write() to allow the maximum transfer size.

Signed-off-by: Tim Chase <tim@chase2k.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #3212
module/zfs/dmu_tx.c
module/zfs/zvol.c