]> git.baikalelectronics.ru Git - kernel.git/commit
[libata] pata_efar: add locking for parallel scanning
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Wed, 17 Feb 2010 13:16:58 +0000 (13:16 +0000)
committerJeff Garzik <jgarzik@redhat.com>
Mon, 1 Mar 2010 20:04:58 +0000 (15:04 -0500)
commitec8c2982e8b65b2e387bf9502ed7134ba4709cba
treed390d5ca09c5fc0ddb8ac3c1d09361c1bfa3a1f5
parentddf0954fa8b3ce4a56bfe091613cd24f47896802
[libata] pata_efar: add locking for parallel scanning

Add clearing of UDMA enable bit also for PIO modes and then add
extra locking for parallel scanning.

This is similar change as commit 59ca31d for ata_piix host driver
and while pata_efar 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 kernel 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_efar.c