]> git.baikalelectronics.ru Git - kernel.git/commit
target: Use FD_MAX_SECTORS/FD_BLOCKSIZE for blockdevs using fileio
authorAndy Grover <agrover@redhat.com>
Fri, 26 Apr 2013 18:09:03 +0000 (11:09 -0700)
committerNicholas Bellinger <nab@linux-iscsi.org>
Fri, 3 May 2013 23:44:24 +0000 (16:44 -0700)
commite785480a21438564018e28fb54d78ca6b823625c
treeb20e3928b2e639c0e4d7c6a593e18212b91c493e
parent5c30d220f24ab3dd5373db86461cb1ee604b728f
target: Use FD_MAX_SECTORS/FD_BLOCKSIZE for blockdevs using fileio

We can still see the error reported in

https://patchwork.kernel.org/patch/2338981/

when using fileio backed by a block device.

I'm assuming this will get us past that error (from sbc_parse_cdb),
and also assuming it's OK to have our max_sectors be larger than
the block's queue max hw sectors?

Reported-by: Eric Harney <eharney@redhat.com>
Signed-off-by: Andy Grover <agrover@redhat.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/target_core_file.c