commit | e0de44573637ba43e43ae1af042e109bbf2b6dd0 | [log] [tgz] |
---|---|---|
author | Paolo Bonzini <pbonzini@redhat.com> | Fri Sep 07 17:30:41 2012 +0200 |
committer | Nicholas Bellinger <nab@linux-iscsi.org> | Mon Sep 17 17:13:38 2012 -0700 |
tree | 177deae38b8bf505a749247b04a90b6b0b0c8eca | |
parent | a50da144d048f9dbebed2b1441ed779d6bbbcd03 [diff] |
target: do not submit a zero-bio I/O request scsi_setup_fs_cmnd does not like to receive requests with no bios attached to it. Special-case zero-length reads and writes, by not submitting any bio. Testcase: sg_raw /dev/sdb 28 00 00 00 00 00 00 00 00 00 should not fail panics with the rest of the series but not this patch behaves correctly without or with this series Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>