qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] ahci-test failures with 'Failed to get "write" lock'
@ 2017-06-15 15:28 Dr. David Alan Gilbert
  2017-06-15 16:16 ` John Snow
  0 siblings, 1 reply; 4+ messages in thread
From: Dr. David Alan Gilbert @ 2017-06-15 15:28 UTC (permalink / raw)
  To: qemu-devel, jsnow, kwolf; +Cc: stefanha, mreitz

Hi,
  Peter noticed that there were some hangs in the ahci-test;
I can reproduce them on my laptop as long as the laptop has
some other load on it (a few md5sum /dev/zero's help).

/x86_64/ahci/flush/migrate: qemu-system-x86_64: Failed to get "write" lock
Is another process using the image?
OK
/x86_64/ahci/migrate/sanity: qemu-system-x86_64: Failed to get "write" lock
Is another process using the image?

and that hangs in sanity.

That seems to be the common case, I've also had one:

/x86_64/ahci/migrate/ncq/halted: qemu-system-x86_64: Failed to get "write" lock
Is another process using the image?
qemu-system-x86_64: /home/dgilbert/git/qemu/block/io.c:1352: bdrv_aligned_pwritev: Assertion `child->perm & BLK_PERM_WRITE' failed.


Neither of these always fail.

Dave
--
Dr. David Alan Gilbert / dgilbert@redhat.com / Manchester, UK

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Qemu-devel] ahci-test failures with 'Failed to get "write" lock'
  2017-06-15 15:28 [Qemu-devel] ahci-test failures with 'Failed to get "write" lock' Dr. David Alan Gilbert
@ 2017-06-15 16:16 ` John Snow
  2017-06-16  9:23   ` Peter Maydell
  0 siblings, 1 reply; 4+ messages in thread
From: John Snow @ 2017-06-15 16:16 UTC (permalink / raw)
  To: Dr. David Alan Gilbert, qemu-devel, kwolf; +Cc: stefanha, mreitz



On 06/15/2017 11:28 AM, Dr. David Alan Gilbert wrote:
> Hi,
>   Peter noticed that there were some hangs in the ahci-test;
> I can reproduce them on my laptop as long as the laptop has
> some other load on it (a few md5sum /dev/zero's help).
> 
> /x86_64/ahci/flush/migrate: qemu-system-x86_64: Failed to get "write" lock
> Is another process using the image?
> OK
> /x86_64/ahci/migrate/sanity: qemu-system-x86_64: Failed to get "write" lock
> Is another process using the image?
> 
> and that hangs in sanity.
> 
> That seems to be the common case, I've also had one:
> 
> /x86_64/ahci/migrate/ncq/halted: qemu-system-x86_64: Failed to get "write" lock
> Is another process using the image?
> qemu-system-x86_64: /home/dgilbert/git/qemu/block/io.c:1352: bdrv_aligned_pwritev: Assertion `child->perm & BLK_PERM_WRITE' failed.
> 
> 
> Neither of these always fail.
> 
> Dave
> --
> Dr. David Alan Gilbert / dgilbert@redhat.com / Manchester, UK
> 

Haven't observed myself and I run the tests pretty frequently. I'll keep
an eye out. I see many similar problems in iotests for other areas, too.

AHCI tests *should* never overlap and *should* never be using images in
an unsafe way, and do a full set-up and tear-down for each individual
unit test.

Of course, maybe the migrate code isn't behaving quite so nicely with
loopback migrations...?

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Qemu-devel] ahci-test failures with 'Failed to get "write" lock'
  2017-06-15 16:16 ` John Snow
@ 2017-06-16  9:23   ` Peter Maydell
  2017-06-16 16:07     ` Fam Zheng
  0 siblings, 1 reply; 4+ messages in thread
From: Peter Maydell @ 2017-06-16  9:23 UTC (permalink / raw)
  To: John Snow
  Cc: Dr. David Alan Gilbert, QEMU Developers, Kevin Wolf,
	Stefan Hajnoczi, Max Reitz

On 15 June 2017 at 17:16, John Snow <jsnow@redhat.com> wrote:
> On 06/15/2017 11:28 AM, Dr. David Alan Gilbert wrote:
>> Hi,
>>   Peter noticed that there were some hangs in the ahci-test;
>> I can reproduce them on my laptop as long as the laptop has
>> some other load on it (a few md5sum /dev/zero's help).
>>
>> /x86_64/ahci/flush/migrate: qemu-system-x86_64: Failed to get "write" lock
>> Is another process using the image?
>> OK
>> /x86_64/ahci/migrate/sanity: qemu-system-x86_64: Failed to get "write" lock
>> Is another process using the image?
>>
>> and that hangs in sanity.
>>
>> That seems to be the common case, I've also had one:
>>
>> /x86_64/ahci/migrate/ncq/halted: qemu-system-x86_64: Failed to get "write" lock
>> Is another process using the image?
>> qemu-system-x86_64: /home/dgilbert/git/qemu/block/io.c:1352: bdrv_aligned_pwritev: Assertion `child->perm & BLK_PERM_WRITE' failed.
>>
>>
>> Neither of these always fail.

> Haven't observed myself and I run the tests pretty frequently. I'll keep
> an eye out. I see many similar problems in iotests for other areas, too.

If we can figure out this quickly that would be good -- it's
causing my build tests to fail often enough that I'm a bit
reluctant to try to merge more pull requests until we've
squished this bug...

thanks
-- PMM

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Qemu-devel] ahci-test failures with 'Failed to get "write" lock'
  2017-06-16  9:23   ` Peter Maydell
@ 2017-06-16 16:07     ` Fam Zheng
  0 siblings, 0 replies; 4+ messages in thread
From: Fam Zheng @ 2017-06-16 16:07 UTC (permalink / raw)
  To: Peter Maydell
  Cc: John Snow, Kevin Wolf, Max Reitz, Dr. David Alan Gilbert,
	Stefan Hajnoczi, QEMU Developers

On Fri, 06/16 10:23, Peter Maydell wrote:
> On 15 June 2017 at 17:16, John Snow <jsnow@redhat.com> wrote:
> > On 06/15/2017 11:28 AM, Dr. David Alan Gilbert wrote:
> >> Hi,
> >>   Peter noticed that there were some hangs in the ahci-test;
> >> I can reproduce them on my laptop as long as the laptop has
> >> some other load on it (a few md5sum /dev/zero's help).
> >>
> >> /x86_64/ahci/flush/migrate: qemu-system-x86_64: Failed to get "write" lock
> >> Is another process using the image?
> >> OK
> >> /x86_64/ahci/migrate/sanity: qemu-system-x86_64: Failed to get "write" lock
> >> Is another process using the image?
> >>
> >> and that hangs in sanity.
> >>
> >> That seems to be the common case, I've also had one:
> >>
> >> /x86_64/ahci/migrate/ncq/halted: qemu-system-x86_64: Failed to get "write" lock
> >> Is another process using the image?
> >> qemu-system-x86_64: /home/dgilbert/git/qemu/block/io.c:1352: bdrv_aligned_pwritev: Assertion `child->perm & BLK_PERM_WRITE' failed.
> >>
> >>
> >> Neither of these always fail.
> 
> > Haven't observed myself and I run the tests pretty frequently. I'll keep
> > an eye out. I see many similar problems in iotests for other areas, too.
> 
> If we can figure out this quickly that would be good -- it's
> causing my build tests to fail often enough that I'm a bit
> reluctant to try to merge more pull requests until we've
> squished this bug...

I have posted a patch:

[PATCH] migration: Fix race of image locking between src and dst

(You are Cc'ed)

Fam

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-06-16 16:07 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-06-15 15:28 [Qemu-devel] ahci-test failures with 'Failed to get "write" lock' Dr. David Alan Gilbert
2017-06-15 16:16 ` John Snow
2017-06-16  9:23   ` Peter Maydell
2017-06-16 16:07     ` Fam Zheng

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).