diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2014-04-02 15:04:41 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2014-04-03 13:10:45 +0200 |
commit | b2f9c08a4f11f16ec101e95feab8e71d7cfcfee9 (patch) | |
tree | 3ff712a2e8e452c388267a89b9a348aee8a8a8a7 | |
parent | 27898a5daa4c6d28adb32b401a011d7198494482 (diff) |
iscsi: ignore flushes on scsi-generic devices
Non-block SCSI devices do not support flushing, but we may still send
them requests via bdrv_flush_all. Just ignore them.
Reviewed-by: Peter Lieven <pl@kamp.de>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
-rw-r--r-- | block/iscsi.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/block/iscsi.c b/block/iscsi.c index 2f96a8e037..e68aa0ffde 100644 --- a/block/iscsi.c +++ b/block/iscsi.c @@ -417,6 +417,10 @@ static int coroutine_fn iscsi_co_flush(BlockDriverState *bs) IscsiLun *iscsilun = bs->opaque; struct IscsiTask iTask; + if (bs->sg) { + return 0; + } + iscsi_co_init_iscsitask(iscsilun, &iTask); retry: |