Message ID | 71c8729a-da21-fe2a-0ddf-82595ecfe28c@redhat.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/block/iscsi.c b/block/iscsi.c index fa03028..299b23c 100644 --- a/block/iscsi.c +++ b/block/iscsi.c @@ -523,6 +523,9 @@ static void iscsi_allocmap_set_unallocated(IscsiLun *iscsilun, int64_t sector_num, int nb_sectors) { + /* Note: if cache.direct=on the third argument to iscsi_allocmap_update + * is ignored, so this will in effect be an iscsi_allocmap_set_invalid. + */ iscsi_allocmap_update(iscsilun, sector_num, nb_sectors, false, true); }