ide: fix ->io_32bit race in set_io_32bit()
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Wed, 12 Dec 2007 22:32:00 +0000 (23:32 +0100)
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Wed, 12 Dec 2007 22:32:00 +0000 (23:32 +0100)
commit644a9d764b4747af057b3db73ccba28a168b1f4f
tree0f692a2e67433b4072856f38a489e0d6fe3c2338
parentbbe4d6d86565bfd9edbc3f19bc23f816af66240d
ide: fix ->io_32bit race in set_io_32bit()

set_io_32bit() (ide_procset_t function) can race against running
PIO transfers.  Fix it by using ide_spin_wait_hwgroup().

Acked-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
drivers/ide/ide.c