[SCSI] libfc: avoid exchanges collision during lport reset
authorVasu Dev <vasu.dev@intel.com>
Fri, 28 Oct 2011 18:34:17 +0000 (11:34 -0700)
committerJames Bottomley <JBottomley@Parallels.com>
Mon, 31 Oct 2011 09:27:19 +0000 (13:27 +0400)
commitb6e3c84034b93e6acc895711f74730e235dfe9d2
treed4f80cd98ba82f5900a1f21ff9b623d86ed12c8f
parent14fc315fa30d128760c7edeff56530142576cd2e
[SCSI] libfc: avoid exchanges collision during lport reset

Currently timer delay is large and is using msleep to avoid
avoid exchanges collision across lport reset, so instead
do this by initializing exches pool indexes during
reset also.

Signed-off-by: Vasu Dev <vasu.dev@intel.com>
Tested-by: Bhanu Prakash Gollapudi <bprakash@broadcom.com>
Signed-off-by: Yi Zou <yi.zou@intel.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/libfc/fc_exch.c
drivers/scsi/libfc/fc_lport.c