be2iscsi: Fix processing CQE before connection resources are freed
authorJayamohan Kallickal <jayamohan.kallickal@emulex.com>
Fri, 8 Aug 2014 05:00:01 +0000 (01:00 -0400)
committerChristoph Hellwig <hch@lst.de>
Tue, 16 Sep 2014 16:09:47 +0000 (09:09 -0700)
commitb7ab35b13379e709a2a1c3f1b3a59e5db62ce4e3
treeb7e9050c574cb6c49a84e5cae29bf828a04fc02b
parenta3d313ea56fada1c73be022140b8d2b14ff1fc7b
be2iscsi: Fix processing CQE before connection resources are freed

 Driver should process the completion queue entries before a connection
 resources are freed. While running mixed traffic due to latency, driver
 processes the CQE after the connection resources are freed. This fix
 processes all the completion queue before the connection resources are
 freed.

Signed-off-by: John Soni Jose <sony.john-n@emulex.com>
Signed-off-by: Jayamohan Kallickal <jayamohan.kallickal@emulex.com>
Reviewed-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/scsi/be2iscsi/be_iscsi.c
drivers/scsi/be2iscsi/be_main.c
drivers/scsi/be2iscsi/be_main.h