[1775] in linux-scsi channel archive

home help back first fref pref prev next nref lref last post

Kernel stack corruption when using xxxx_command()

daemon@ATHENA.MIT.EDU (campbell@tirian.che.curtin.edu.au)
Mon Apr 28 23:06:04 1997

From: campbell@tirian.che.curtin.edu.au
To: linux-scsi@vger.rutgers.edu
Date: 	Tue, 29 Apr 1997 11:04:28 +0000

I have traced my problem with the parallel port ZIP driver to the 
timer queue freezing under heavy CPU loading, a possible solution I 
looked at was to use the "old style" ####_command(Scsi_cmnd *cmd) 
interface as opposed to queuecommand().

When I use the ####_command() I receive kernel stack corruption, does 
anyone know what causes this?

Also I have found that if the done() function is called during the 
####_queuecommand() processing that this also causes stack 
corruption. ie: done() must be called after returning from the 
relevant ####_queuecommand() request and not before.

Any hints most appreciated here...

David Campbell

PS: I have been told that the NCR5830 is a polling style driver, I 
will have a look at using this as a template shortly.

home help back first fref pref prev next nref lref last post