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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 19 May 2013 18:38:47 +0000 (11:38 -0700)
commit8cb3a88522df20a6d77934260040facfc0449f0e
tree7414ad5a0a5ec5758522aea9d1730f879827ac80
parent60106c06452e7db66d13ce8286d89b9cce13664d
target: Use FD_MAX_SECTORS/FD_BLOCKSIZE for blockdevs using fileio

commit e3e84cda321703b123f36488f50700f371bc7230 upstream.

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>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/target/target_core_file.c