Re: [Qemu-devel] [PATCH] AHCI: Fix port reset race

2012-02-09 Thread Kevin Wolf
Am 30.01.2012 23:29, schrieb Alexander Graf: > bdrv_aio_cancel() can trigger bdrv_aio_flush() which makes all aio > that is currently in flight finish. So what we do is: > > port reset > detect ncq in flight > cancel ncq > delete ncq sg list > > at which point we have double freed the sg

[Qemu-devel] [PATCH] AHCI: Fix port reset race

2012-01-30 Thread Alexander Graf
bdrv_aio_cancel() can trigger bdrv_aio_flush() which makes all aio that is currently in flight finish. So what we do is: port reset detect ncq in flight cancel ncq delete ncq sg list at which point we have double freed the sg list. Instead, with this patch we do: port reset detect nc