Re: [PATCH 06/23] libata: kill ATA_FLAG_DISABLED

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 05/10/2010 03:41 PM, Tejun Heo wrote:
ATA_FLAG_DISABLED is only used by drivers which don't use
->error_handler framework and is largely broken.  Its only meaningful
function is to make irq handlers skip processing if the flag is set,
which is largely useless and even harmful as it makes those ports more
likely to cause IRQ storms.

Kill ATA_FLAG_DISABLED and makes the callers disable attached devices
instead.  ata_port_probe() and ata_port_disable() which manipulate the
flag are also killed.

This simplifies condition check in IRQ handlers.  While updating IRQ
handlers, remove ap NULL check as libata guarantees consecutive port
allocation (unoccupied ports are initialized with dummies) and
long-obsolete ATA_QCFLAG_ACTIVE check (checked by ata_qc_from_tag()).

Signed-off-by: Tejun Heo<tj@xxxxxxxxxx>
---
  drivers/ata/libata-core.c           |   66 +----------
  drivers/ata/libata-scsi.c           |    3 -
  drivers/ata/libata-sff.c            |   10 +--
  drivers/ata/pata_bf54x.c            |   16 +--
  drivers/ata/pata_octeon_cf.c        |    9 +-
  drivers/ata/pdc_adma.c              |   66 +++++------
  drivers/ata/sata_inic162x.c         |   17 +--
  drivers/ata/sata_mv.c               |   18 +--
  drivers/ata/sata_nv.c               |  238 +++++++++++++++++------------------
  drivers/ata/sata_promise.c          |    6 +-
  drivers/ata/sata_qstor.c            |   79 ++++++------
  drivers/ata/sata_sil.c              |    3 -
  drivers/ata/sata_sil24.c            |    9 +-
  drivers/ata/sata_sx4.c              |    3 +-
  drivers/ata/sata_vsc.c              |   10 +--
  drivers/scsi/ipr.c                  |    6 +-
  drivers/scsi/libsas/sas_scsi_host.c |    2 +-
  include/linux/libata.h              |    8 --
  18 files changed, 210 insertions(+), 359 deletions(-)

applied 6-8


--
To unsubscribe from this list: send the line "unsubscribe linux-ide" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Filesystems]     [Linux SCSI]     [Linux RAID]     [Git]     [Kernel Newbies]     [Linux Newbie]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Samba]     [Device Mapper]

  Powered by Linux