be2iscsi: Fix updating the next pointer during WRB posting
authorJohn Soni Jose <sony.john@avagotech.com>
Wed, 19 Aug 2015 23:14:30 +0000 (04:44 +0530)
committerJames Bottomley <JBottomley@Odin.com>
Mon, 9 Nov 2015 23:48:03 +0000 (15:48 -0800)
commit340c99e9adacfe1bc7dd50eec4d4fa3203288042
tree603ff2cc9039752e4aec81c69caf33e3618266b8
parent40998193560dab6c3ce8d25f4fa58a23e252ef38
be2iscsi: Fix updating the next pointer during WRB posting

While posting WRB the next_pointer of the current WRB should point
to itself and the previous WRB next_pointer should point to the
current WRB.

The next pointer value was retrieved during alloc_pdu and was updated
in wrb before ringing the doorbell. The fix retrieves the
next_pointer just before ringing the doorbell and updates in the WRB.

Signed-off-by: John Soni Jose <sony.john@avagotech.com>
Reviewed-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: James Bottomley <JBottomley@Odin.com>
drivers/scsi/be2iscsi/be_main.c
drivers/scsi/be2iscsi/be_main.h
drivers/scsi/be2iscsi/be_mgmt.c
drivers/scsi/be2iscsi/be_mgmt.h