projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
affc677
)
scsi: libcxgbi: use GFP_ATOMIC in cxgbi_conn_alloc_pdu()
author
Varun Prakash
<varun@chelsio.com>
Thu, 4 Jan 2018 15:34:17 +0000
(21:04 +0530)
committer
Martin K. Petersen
<martin.petersen@oracle.com>
Tue, 9 Jan 2018 02:45:48 +0000
(21:45 -0500)
For mgmt cmds ->alloc_pdu() can be called from atomic context so use
GFP_ATOMIC instead of GFP_KERNEL.
Signed-off-by: Varun Prakash <varun@chelsio.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/cxgbi/libcxgbi.c
patch
|
blob
|
history
diff --git
a/drivers/scsi/cxgbi/libcxgbi.c
b/drivers/scsi/cxgbi/libcxgbi.c
index ce1336414e0a2eff6ea4273fa21714026b6e6e5f..3f3af5e74a07dd9b23b64a929d1e6e3789b3b614 100644
(file)
--- a/
drivers/scsi/cxgbi/libcxgbi.c
+++ b/
drivers/scsi/cxgbi/libcxgbi.c
@@
-1914,7
+1914,7
@@
int cxgbi_conn_alloc_pdu(struct iscsi_task *task, u8 opcode)
if (task->sc) {
task->hdr = (struct iscsi_hdr *)tdata->skb->data;
} else {
- task->hdr = kzalloc(SKB_TX_ISCSI_PDU_HEADER_MAX, GFP_
KERNEL
);
+ task->hdr = kzalloc(SKB_TX_ISCSI_PDU_HEADER_MAX, GFP_
ATOMIC
);
if (!task->hdr) {
__kfree_skb(tdata->skb);
tdata->skb = NULL;