]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Ensure flushing of IO prior to removing FC device
authorWalter A. Boring IV <walter.boring@hp.com>
Wed, 4 Jun 2014 22:22:08 +0000 (15:22 -0700)
committerWalter A. Boring IV <walter.boring@hp.com>
Thu, 5 Jun 2014 17:52:15 +0000 (10:52 -0700)
commit383f460d6d0431d3dbaf32edb7fcb68c25ff1929
tree85eb3dccbfbb03bfb4485f88f7f7942f73dd9b6a
parentf40b4a36b41b88223e8a41fbccd1248ff4bba3ec
Ensure flushing of IO prior to removing FC device

This patch flushes IO for each SCSI device that
brick removes from the system.  The patch also
flushes a multipath device prior to removing
each underlying LUN associated with the
multipath device.   We were seeing kernel
IO errors in the syslog without calling flush
on the block device, during a detach for a
multipath FibreChannel copy image to volume
action.

Change-Id: I2fae3dccd4fcab22c8f59dcd297581ee9577b779
Closes-Bug: 1318950
cinder/brick/initiator/connector.py
cinder/brick/initiator/linuxscsi.py
cinder/tests/brick/test_brick_connector.py
cinder/tests/brick/test_brick_linuxscsi.py