[libata] pata_atiixp: add locking for parallel scanning
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Wed, 17 Feb 2010 13:17:31 +0000 (13:17 +0000)
committerJeff Garzik <jgarzik@redhat.com>
Mon, 1 Mar 2010 20:06:28 +0000 (15:06 -0500)
commite99846f18f03badd1bbd4fda79e6ec325e3b9058
treec5e8e1d36c495fd003f648eea2e2c582efd61177
parent303f1a76ae792885af8a4a0e784e22e31e850e9a
[libata] pata_atiixp: add locking for parallel scanning

This is similar change as commit 60c3be3 for ata_piix host driver
and while pata_atiixp doesn't enable parallel scan yet the race
could probably also be triggered by requesting re-scanning of both
ports at the same time using SCSI sysfs interface.

[Ported to current tree without other patch dependancies by Alan Cox]

Original is
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
This one is
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
drivers/ata/pata_atiixp.c