Patch "ibmvscsis: Fix sleeping in interrupt context" has been added to the 4.9-stable tree
Subsystems (3)
This is a note to let you know that I've just added the patch titled
ibmvscsis: Fix sleeping in interrupt context
to the 4.9-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
ibmvscsis-fix-sleeping-in-interrupt-context.patch
and it can be found in the queue-4.9 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From
a5b0e4062fb225155189e593699bbfcd0597f8b5Mon Sep 17 00:00:00 2001
From: "Bryant G. Ly" <[email protected]>
Date: Wed, 11 Jan 2017 13:16:42 -0600
Subject: ibmvscsis: Fix sleeping in interrupt context
From: Bryant G. Ly <[email protected]>
commit a5b0e4062fb225155189e593699bbfcd0597f8b5 upstream.
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.
--- drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c +2 -2
@@ -1239,7 +1239,7 @@ static long ibmvscsis_adapter_info(struc } 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);
@@ -1357,7 +1357,7 @@ static int ibmvscsis_cap_mad(struct scsi } 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);
Patches currently in stable-queue which might be from [email protected] are
queue-4.9/ibmvscsis-fix-max-transfer-length.patch queue-4.9/ibmvscsis-fix-sleeping-in-interrupt-context.patch