]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] libata: Clear ATA_QCFLAG_ACTIVE flag before calling the completion callback
authorAlbert Lee <albertcc@tw.ibm.com>
Tue, 16 Aug 2005 06:25:38 +0000 (14:25 +0800)
committerJeff Garzik <jgarzik@pobox.com>
Tue, 23 Aug 2005 05:03:38 +0000 (01:03 -0400)
commit7250f2c2b5a08db7b6c81d6083e7311177295d1d
tree06bd36db635380e3ba5371b15c899b3b03c095a4
parent632d076550fa2a8da8403df75c1d420a314fc1f8
[PATCH] libata: Clear ATA_QCFLAG_ACTIVE flag before calling the completion callback

Description:
  After calling the completion callback, the libata error handler might be
running and getting atapi sense data. Clearing the ATA_QCFLAG_ACTIVE flag
at this point might interfere with the libata error handler.

Changes:
   - Clear the ATA_QCFLAG_ACTIVE flag before calling the completion callback
     (and also before the error handler)
   - Add some comment

Signed-off-by: Albert Lee <albertcc@tw.ibm.com>
Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
drivers/scsi/libata-core.c