scsi: be2iscsi: Use GFP_ATOMIC under spin lock
authorWei Yongjun <weiyongjun1@huawei.com>
Thu, 12 Jan 2017 14:21:32 +0000 (14:21 +0000)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 20 Jan 2017 21:57:48 +0000 (16:57 -0500)
commitf253473699b2e308e48a6e2eacb4391e045410c9
tree59bdb3fa9214983bdfeb826cd851f76324868076
parente01ea5e2a3f2a127ace8b671a830a5c789f07510
scsi: be2iscsi: Use GFP_ATOMIC under spin lock

A spin lock is taken here so we should use GFP_ATOMIC.

Fixes: 987132167f4b ("scsi: be2iscsi: Fix for crash in beiscsi_eh_device_reset")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Reviewed-by: Jitendra Bhivare <jitendra.bhivare@broadcom.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/be2iscsi/be_main.c