]> git.karo-electronics.de Git - karo-tx-linux.git/commit
target/file: Bump FD_MAX_SECTORS to 2048 to handle 1M sized I/Os
authorNicholas Bellinger <nab@linux-iscsi.org>
Mon, 18 Mar 2013 20:15:57 +0000 (13:15 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Mar 2013 19:17:48 +0000 (12:17 -0700)
commit12fe6f137e304b53e6104880b3a25a2919f912a9
tree3fca7947125c0301bd14df5cf7d6cdc879134715
parent36dd1474a1b29616381b16a7f1b3fbb430e2d44f
target/file: Bump FD_MAX_SECTORS to 2048 to handle 1M sized I/Os

commit f002a24388cc460c8a9be7d446a9871f7c9d52b6 upstream.

This patch bumps the default FILEIO backend FD_MAX_SECTORS value from
1024 -> 2048 in order to allow block_size=512 to handle 1M sized I/Os.

The current default rejects I/Os larger than 512K in sbc_parse_cdb():

[12015.915146] SCSI OP 2ah with too big sectors 1347 exceeds backend
hw_max_sectors: 1024
[12015.977744] SCSI OP 2ah with too big sectors 2048 exceeds backend
hw_max_sectors: 1024

This issue is present in >= v3.5 based kernels, introduced after the
removal of se_task logic.

Reported-by: Viljami Ilola <azmulx@netikka.fi>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/target/target_core_file.h