Skip to content

Commit 11f0446

Browse files
julianwiedmannVasily Gorbik
authored andcommitted
s390/qdio: don't allocate *aob array with GFP_ATOMIC
The only way to reach this allocation is via qdio_establish() qdio_detect_hsicq() qdio_enable_async_operation() and since qdio_establish() uses wait_event_*() just a few lines ealier, we can trust that it certainly is never called from atomic context. Signed-off-by: Julian Wiedmann <[email protected]> Reviewed-by: Steffen Maier <[email protected]> Signed-off-by: Vasily Gorbik <[email protected]>
1 parent 0b6f499 commit 11f0446

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/s390/cio/qdio_setup.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -536,7 +536,7 @@ void qdio_print_subchannel_info(struct qdio_irq *irq_ptr,
536536
int qdio_enable_async_operation(struct qdio_output_q *outq)
537537
{
538538
outq->aobs = kcalloc(QDIO_MAX_BUFFERS_PER_Q, sizeof(struct qaob *),
539-
GFP_ATOMIC);
539+
GFP_KERNEL);
540540
if (!outq->aobs) {
541541
outq->use_cq = 0;
542542
return -ENOMEM;

0 commit comments

Comments
 (0)