]> www.infradead.org Git - users/jedix/linux-maple.git/commit
be2iscsi: Add lock to protect WRB alloc and free
authorJitendra Bhivare <jitendra.bhivare@broadcom.com>
Thu, 4 Feb 2016 10:19:20 +0000 (15:49 +0530)
committerChuck Anderson <chuck.anderson@oracle.com>
Thu, 10 Mar 2016 15:21:58 +0000 (07:21 -0800)
commit93e6867e16ab200019c01f481852ceca9e25a4a8
treea471c2ddf178a28a6b8637b020b1d00c64224e2d
parentb3e2b96249d908e212967cfd8d8ca636dd04054d
be2iscsi: Add lock to protect WRB alloc and free

Orabug: 22725588

FW got into UE after running IO stress test

With kernel change to split session lock in frwd_lock and back_lock for
tx and rx path correspondingly, in the IO path, common resource used in
driver such as WRB was left unprotected.

Add wrb_lock spinlock to protect allocation and freeing of WRB.

Signed-off-by: Jitendra Bhivare <jitendra.bhivare@broadcom.com>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Dan Duval <dan.duval@oracle.com>
drivers/scsi/be2iscsi/be_main.c
drivers/scsi/be2iscsi/be_main.h