aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/infiniband
diff options
context:
space:
mode:
authorBart Van Assche <bart.vanassche@sandisk.com>2017-05-04 15:50:47 -0700
committerNicholas Bellinger <nab@linux-iscsi.org>2017-05-07 16:05:16 -0700
commit59ac9c078141b8fd0186c0b18660a1b2c24e724e (patch)
treeddcc5cb10b39a96d34856e1c8c843f4ca393ea5d /drivers/infiniband
parentibmvscsis: Do not send aborted task response (diff)
downloadwireguard-linux-59ac9c078141b8fd0186c0b18660a1b2c24e724e.tar.xz
wireguard-linux-59ac9c078141b8fd0186c0b18660a1b2c24e724e.zip
target/fileio: Fix zero-length READ and WRITE handling
This patch fixes zero-length READ and WRITE handling in target/FILEIO, which was broken a long time back by: Since: commit d81cb44726f050d7cf1be4afd9cb45d153b52066 Author: Paolo Bonzini <pbonzini@redhat.com> Date: Mon Sep 17 16:36:11 2012 -0700 target: go through normal processing for all zero-length commands which moved zero-length READ and WRITE completion out of target-core, to doing submission into backend driver code. To address this, go ahead and invoke target_complete_cmd() for any non negative return value in fd_do_rw(). Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com> Reviewed-by: Hannes Reinecke <hare@suse.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Cc: Andy Grover <agrover@redhat.com> Cc: David Disseldorp <ddiss@suse.de> Cc: <stable@vger.kernel.org> # v3.7+ Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'drivers/infiniband')
0 files changed, 0 insertions, 0 deletions