iscsi: ignore flushes on scsi-generic devices
commitb2f9c08a4f11f16ec101e95feab8e71d7cfcfee9
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 2 Apr 2014 13:04:41 +0000 (2 15:04 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 3 Apr 2014 11:10:45 +0000 (3 13:10 +0200)
tree3ff712a2e8e452c388267a89b9a348aee8a8a8a7
parent27898a5daa4c6d28adb32b401a011d7198494482
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>
block/iscsi.c