diff options
| author | Vijay Viswanath <vviswana@codeaurora.org> | 2016-11-15 11:02:03 +0530 |
|---|---|---|
| committer | Vijay Viswanath <vviswana@codeaurora.org> | 2016-12-30 10:34:58 +0530 |
| commit | db0785db9ae779a2dc25966a12e951ed3d55e195 (patch) | |
| tree | fc4d15ffc2ca48c059a0bae861c8593cee9b76d8 /net/switchdev/switchdev.c | |
| parent | 55e8426a192811d7567f19d7e781727f46b0406d (diff) | |
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__RECLAIM flag enabled.Such a workqueue will have
a rescue thread which will be called when the above deadlock
condition is possible.
Change-Id: I91c5bff812be403addc98fbb8c620e67cf28f5d9
Signed-off-by: Vijay Viswanath <vviswana@codeaurora.org>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions
