summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/qlogicpti.c
diff options
context:
space:
mode:
authorVijay Viswanath <vviswana@codeaurora.org>2018-05-03 13:07:22 +0200
committerMartin K. Petersen <martin.petersen@oracle.com>2018-05-18 18:22:47 +0200
commit10e5e37581fc5817d52ff5f8e2b3362f64eb04f4 (patch)
tree0cd3a08994ad1f1b8ded13e502fd93a4475205f6 /drivers/scsi/qlogicpti.c
parentscsi: ufs: make sure all interrupts are processed (diff)
downloadlinux-10e5e37581fc5817d52ff5f8e2b3362f64eb04f4.tar.xz
linux-10e5e37581fc5817d52ff5f8e2b3362f64eb04f4.zip
scsi: ufs: Add clock ungating to a separate workqueue
UFS driver can receive a request during memory reclaim by kswapd. So when ufs driver puts the ungate work in queue, and if there are no idle workers, kthreadd is invoked to create a new kworker. Since kswapd task holds a mutex which kthreadd also needs, this can cause a deadlock situation. So ungate work must be done in a separate work queue with WQ_MEM_RECLAIM flag enabled. Such a workqueue will have a rescue thread which will be called when the above deadlock condition is possible. Signed-off-by: Vijay Viswanath <vviswana@codeaurora.org> Signed-off-by: Can Guo <cang@codeaurora.org> Signed-off-by: Asutosh Das <asutoshd@codeaurora.org> Reviewed-by: Subhash Jadavani <subhashj@codeaurora.org> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/qlogicpti.c')
0 files changed, 0 insertions, 0 deletions