]> git.baikalelectronics.ru Git - kernel.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)
committerNicholas Bellinger <nab@linux-iscsi.org>
Wed, 20 Mar 2013 00:24:28 +0000 (17:24 -0700)
commit2cd6f39e61780c55116d917aa098ea1a109d678a
tree32934cefb174c6665fdc26d29eb5f0606552deaa
parent41b8a0f1c3c774408a17111b7c14812069d7e251
target/file: Bump FD_MAX_SECTORS to 2048 to handle 1M sized I/Os

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>
Cc: <stable@vger.kernel.org>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/target_core_file.h