17 May 2013 22:29
[PATCH] target: Use FD_MAX_SECTORS/FD_BLOCKSIZE for blockdevs using fileio
Nicholas A. Bellinger <nab <at> linux-iscsi.org>
2013-05-17 20:29:41 GMT
2013-05-17 20:29:41 GMT
From: Andy Grover <agrover <at> redhat.com> This is a <= v3.9 backport of upstream commit e3e84cda32170 ------------------------------------------------------------------ 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 <at> redhat.com> Signed-off-by: Andy Grover <agrover <at> redhat.com> Signed-off-by: Nicholas Bellinger <nab <at> linux-iscsi.org> --- drivers/target/target_core_file.c | 10 ++-------- 1 files changed, 2 insertions(+), 8 deletions(-) diff --git a/drivers/target/target_core_file.c b/drivers/target/target_core_file.c index 17a6acb..ca4b219 100644 --- a/drivers/target/target_core_file.c +++ b/drivers/target/target_core_file.c <at> <at> -148,13 +148,8 <at> <at> static int fd_configure_device(struct se_device *dev) */ inode = file->f_mapping->host;(Continue reading)
RSS Feed