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:
387b978
)
ibmvscsis: Fix sleeping in interrupt context
author
Bryant G. Ly
<
[email protected]
>
Wed, 11 Jan 2017 19:16:42 +0000
(13:16 -0600)
committer
Bart Van Assche
<
[email protected]
>
Tue, 17 Jan 2017 17:42:29 +0000
(09:42 -0800)
Currently, dma_alloc_coherent is being called with a GFP_KERNEL
flag which allows it to sleep in an interrupt context, need to
change to GFP_ATOMIC.
Cc:
[email protected]
Tested-by: Steven Royer <
[email protected]
>
Reviewed-by: Michael Cyr <
[email protected]
>
Signed-off-by: Bryant G. Ly <
[email protected]
>
Signed-off-by: Bart Van Assche <
[email protected]
>
drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c
patch
|
blob
|
history
diff --git
a/drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c
b/drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c
index 9c91e757c2ef5e2992828016b6a4b16f7f8fd9a3..99b747cedbebc517a78714db321743f0837834b6 100644
(file)
--- a/
drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c
+++ b/
drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c
@@
-1392,7
+1392,7
@@
static long ibmvscsis_adapter_info(struct scsi_info *vscsi,
}
info = dma_alloc_coherent(&vscsi->dma_dev->dev, sizeof(*info), &token,
- GFP_
KERNEL
);
+ GFP_
ATOMIC
);
if (!info) {
dev_err(&vscsi->dev, "bad dma_alloc_coherent %p\n",
iue->target);
@@
-1510,7
+1510,7
@@
static int ibmvscsis_cap_mad(struct scsi_info *vscsi, struct iu_entry *iue)
}
cap = dma_alloc_coherent(&vscsi->dma_dev->dev, olen, &token,
- GFP_
KERNEL
);
+ GFP_
ATOMIC
);
if (!cap) {
dev_err(&vscsi->dev, "bad dma_alloc_coherent %p\n",
iue->target);