Re: Return of PENDING status to SCSI driver

Alan Stern
2009-06-16T15:13:28Z

On Tue, 16 Jun 2009, Ramya Desai wrote:

> If I call void (*done)(struct scsi_cmnd *) call back immediately after
> receiving a command, will I get another command ?

You MUST NOT do that! Never call (*done)() until the scsi_cmnd is
actually complete. That's what it's for -- to tell the SCSI midlayer
that the command has been carried out.

Can you post your code for queuecommand()? That's probably where the
real problem is.

Alan Stern

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