Re: [Bugme-new] [Bug 6092] New: drivers/scsi/pcmcia/aha152x_stub.c: aha152x_resume(): variable used before set

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

 



Hi Andrew,

On Sat, Feb 18, 2006 at 14:14:23 -0800, Andrew Morton wrote:
> >  Fix below.
 
> Thanks.
 
> Could we please have a more complete description of this change?  It's
> obviosly doing more than fixing a used-uninitialised bug..

After fixing the problem in question, I discoved that the driver still
didn't work with the pcmcia card I picked up.  run/is_complete was
sometimes not called at all or called multiple times on one interrupt.

I'm not really sure why (or why that worked before).  It's now ensured
that run() is only added to the task queue once per interrupt (by
protecting 'service' with spinlocks).

Additionally interrupt sharing didn't seem to work as the interrupt
handler didn't check if a interrupt condition was at all pending.


In short:
- change interface of the reset functions from Scsi_Cmnd to Scsi_Host.  
- add functions with the original interface and rename the new
  functions to reflect the new interface.
- call these from the pcmcia driver, thereby avoiding the need to
  construct a (broken) Scsi_Cmnd from a Scsi_Host.
- just run the bh if the interrupt is from the controller and if so
  ensure that it's only called once per interrupt.


Jürgen
-
: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux