]> www.infradead.org Git - users/jedix/linux-maple.git/commit
be2iscsi: Fix updating the next pointer during WRB posting
authorJitendra Bhivare <jitendra.bhivare@avagotech.com>
Fri, 9 Oct 2015 10:11:28 +0000 (15:41 +0530)
committerDan Duval <dan.duval@oracle.com>
Mon, 12 Oct 2015 18:45:25 +0000 (14:45 -0400)
commit83df7377c09db28b0ccb3b0be81c6dc0e69e6def
tree37fdf8e2791bd6a7b45c60581db774bf6b079f2d
parentc36f2b0b8719238685ae7d9e113e3b44283d00ec
be2iscsi: Fix updating the next pointer during WRB posting

Orabug: 21862307

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>
Signed-off-by: Dan Duval <dan.duval@oracle.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