[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-block] [PATCH for-2.7 00/15] block: Lock images when opening
From: |
Fam Zheng |
Subject: |
Re: [Qemu-block] [PATCH for-2.7 00/15] block: Lock images when opening |
Date: |
Thu, 14 Apr 2016 13:46:53 +0800 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
On Thu, 04/14 08:04, Denis V. Lunev wrote:
> unfortunately no. If the lock will be on the image file,
> we will have get it on the target node on QEMU start
> and re-acquire it in bdrv_invalidate_cache.
>
> From my POW you should not get the lock if
> BDRV_O_INACTIVE is set.
That is what I meant. :)
At source: Images are unlocked in bdrv_inactivate().
At destinition: Images are not locked if opened with BDRV_O_INACTIVE, and
are locked in bdrv_invalidate_cache() (at the INMIGRATE -> RUNNING switch).
Fam
- [Qemu-block] [PATCH for-2.7 10/15] qemu-iotests: Fix lock-image for shared disk in test case 091, (continued)
- [Qemu-block] [PATCH for-2.7 10/15] qemu-iotests: Fix lock-image for shared disk in test case 091, Fam Zheng, 2016/04/13
- [Qemu-block] [PATCH for-2.7 13/15] ahci-test: Specify "lock-image=off" in CLI, Fam Zheng, 2016/04/13
- [Qemu-block] [PATCH for-2.7 12/15] qemu-iotests: 051: Disable image lock in the command line, Fam Zheng, 2016/04/13
- [Qemu-block] [PATCH for-2.7 15/15] block: Turn on image locking by default, Fam Zheng, 2016/04/13
- [Qemu-block] [PATCH for-2.7 14/15] ide-test: Specify "lock-image=off" in command lines, Fam Zheng, 2016/04/13
- Re: [Qemu-block] [PATCH for-2.7 00/15] block: Lock images when opening, Daniel P. Berrange, 2016/04/13
- Re: [Qemu-block] [PATCH for-2.7 00/15] block: Lock images when opening, Denis V. Lunev, 2016/04/13
Re: [Qemu-block] [Qemu-devel] [PATCH for-2.7 00/15] block: Lock images when opening, Richard W.M. Jones, 2016/04/17