]> bbs.cooldavid.org Git - net-next-2.6.git/commit
[SCSI] mpt2sas: Call init_completion on a per request basis.
authorKashyap, Desai <kashyap.desai@lsi.com>
Mon, 14 Sep 2009 05:35:24 +0000 (11:05 +0530)
committerJames Bottomley <James.Bottomley@suse.de>
Fri, 2 Oct 2009 14:48:50 +0000 (09:48 -0500)
commitbcfb6e6ea46d84bfb541069545e5b0d7f6cc3233
treec6ddcd28cc123bf2c1abcb6b79b0c49a3521e1bd
parent77e63ed44305e89c0564f8292f9cd5764d4fddfb
[SCSI] mpt2sas: Call init_completion on a per request basis.

Now driver call init_completion on a per request basis.  At some
point the wait_for_completion_timeout is not waiting for the timeout,
instead returning immediately, thus going into diag reset.  This fix will
address all request using the wait_for_completion_timeout API. The previous
implimentation was only calling init_completion at driver
load time.

Signed-off-by: Kashyap Desai <kashyap.desai@lsi.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/scsi/mpt2sas/mpt2sas_base.c
drivers/scsi/mpt2sas/mpt2sas_ctl.c
drivers/scsi/mpt2sas/mpt2sas_transport.c