Re: [Qemu-devel] [PATCH for-2.0] iscsi: always query max WRITE SAME length

2014-04-02 Thread Peter Lieven
Am 02.04.2014 15:44, schrieb Paolo Bonzini: > 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. > >

[Qemu-devel] [PATCH for-2.0] iscsi: always query max WRITE SAME length

2014-04-02 Thread Paolo Bonzini
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. Signed-off-by: Paolo Bonzini --- block/iscsi.c | 12 +++