[SCSI] be2iscsi: Freeing of WRB and SGL Handle in cleanup task
authorMike Christie <michaelc@cs.wisc.edu>
Wed, 18 Apr 2012 08:06:00 +0000 (03:06 -0500)
committerJames Bottomley <JBottomley@Parallels.com>
Wed, 25 Apr 2012 08:01:40 +0000 (09:01 +0100)
commit1282ab76d983b2753b5cd4c9ae6b8019b0557b30
tree79898110d3fb31019cc0103e98ec698490a642cf
parent3ec7827134a976a3ffffd9e438b8d8dfd6eca9b7
[SCSI] be2iscsi: Freeing of WRB and SGL Handle in cleanup task

The WRB and SGL Handle allocated for Login task were not freed
back to the pool after the login process was done. This code
releases the WRB and SGL Handle after the login process.

v2:
- Fix up locking so bh calls are not done when not needed.
- Make beiscsi_cleanup_task static.

Signed-off-by: Jayamohan Kallickal <jayamohan.kallickal@emulex.com>
[various fixes]
Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/be2iscsi/be_main.c