]> git.baikalelectronics.ru Git - kernel.git/commit
ide: allow ide_dev_read_id() to be called from the IRQ context
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Tue, 23 Jun 2009 11:29:11 +0000 (11:29 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 7 Aug 2009 17:42:59 +0000 (10:42 -0700)
commitdcb1164c68fb5403186ca3f104fb64219875323d
treeb51b1e66ac75b1412f57f7e41e3aff4bc8f0f0f7
parentdad55f577698629e749ccd254d3773bdddf9ef8b
ide: allow ide_dev_read_id() to be called from the IRQ context

* Un-static __ide_wait_stat().

* Allow ide_dev_read_id() helper to be called from the IRQ context by
  adding irq_ctx flag and using mdelay()/__ide_wait_stat() when needed.

* Switch ide_driveid_update() to set irq_ctx flag.

This change is needed for the consecutive patch which fixes races in
handling of user-space SET XFER commands but for improved bisectability
and clarity it is better to do it in a separate patch.

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/ide/ide-iops.c
drivers/ide/ide-probe.c
include/linux/ide.h