libata-acpi: don't call sleeping function from invalid context
authorZhang Rui <rui.zhang@intel.com>
Fri, 11 Jul 2008 13:42:03 +0000 (09:42 -0400)
committerJeff Garzik <jgarzik@redhat.com>
Fri, 11 Jul 2008 13:42:03 +0000 (09:42 -0400)
commit3c1e3896344063273715b332b1c0534deb9b286c
treefbc97263f4c9c87288baaf65825fcddead14f617
parentedb804713ffb660ddad5dda5fb8f2addea7ad8c6
libata-acpi: don't call sleeping function from invalid context

The problem is introduced by commit
664d080c41463570b95717b5ad86e79dc1be0877.

acpi_evaluate_integer is a sleeping function,
and it should not be called with spin_lock_irqsave.
https://bugzilla.redhat.com/show_bug.cgi?id=451399

Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
drivers/ata/libata-acpi.c