]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit745f55f8c7594f6ae68c54cfeca56fa86e1cb4cc
tree603ff2cc9039752e4aec81c69caf33e3618266b8
parent2b34146a2c7b8f3b061e3f2b34d02502494cfb6b
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