iscsi: always query max WRITE SAME length
commitc97ca29db0a68deb281a901f535cec5ea4862244
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 2 Apr 2014 13:30:29 +0000 (2 15:30 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 3 Apr 2014 11:10:53 +0000 (3 13:10 +0200)
treeff6f372f87d90b3c1d8a4945d3a7e46b1614faff
parentb2f9c08a4f11f16ec101e95feab8e71d7cfcfee9
iscsi: always query max WRITE SAME length

Max WRITE SAME length is also used when the UNMAP bit is zero, so it
should be queried even if LBPWS=0.  Same for the optimal transfer
length.

However, the write_zeroes_alignment only matters for UNMAP=1 so we
still restrict it to LBPWS=1.

Reviewed-by: Peter Lieven <pl@kamp.de>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
block/iscsi.c