block/iscsi: use the allocationmap also if cache.direct=on
commit9eac3622a2b1159ab50b10540e822f3e58fdc383
authorPeter Lieven <pl@kamp.de>
Thu, 16 Apr 2015 14:08:33 +0000 (16 16:08 +0200)
committerKevin Wolf <kwolf@redhat.com>
Tue, 28 Apr 2015 13:36:10 +0000 (28 15:36 +0200)
tree568b8fba392b00f43e014e621610fc5c2a81cbbd
parent03e40fef4678f9a42846c91a804b6d3c820e8b90
block/iscsi: use the allocationmap also if cache.direct=on

the allocationmap has only a hint character. The driver always
double checks that blocks marked unallocated in the cache are
still unallocated before taking the fast path and return zeroes.
So using the allocationmap is migration safe and can
also be enabled with cache.direct=on.

Signed-off-by: Peter Lieven <pl@kamp.de>
Message-id: 1429193313-4263-10-git-send-email-pl@kamp.de
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/iscsi.c