diff options
| author | Sagi Grimberg <[email protected]> | 2022-03-21 11:57:27 +0000 |
|---|---|---|
| committer | Christoph Hellwig <[email protected]> | 2022-03-29 07:29:04 +0000 |
| commit | 8832cf922151e9dfa2821736beb0ae2dd3968b6e (patch) | |
| tree | e73b437a77400681d0c2bb1e94a52f2ddfcdb34a /net/unix/af_unix.c | |
| parent | nvme-pci: add quirks for Samsung X5 SSDs (diff) | |
| download | kernel-8832cf922151e9dfa2821736beb0ae2dd3968b6e.tar.gz kernel-8832cf922151e9dfa2821736beb0ae2dd3968b6e.zip | |
nvmet: use a private workqueue instead of the system workqueue
Any attempt to flush kernel-global WQs has possibility of deadlock
so we should simply stop using them, instead introduce nvmet_wq
which is the generic nvmet workqueue for work elements that
don't explicitly require a dedicated workqueue (by the mere fact
that they are using the system_wq).
Changes were done using the following replaces:
- s/schedule_work(/queue_work(nvmet_wq, /g
- s/schedule_delayed_work(/queue_delayed_work(nvmet_wq, /g
- s/flush_scheduled_work()/flush_workqueue(nvmet_wq)/g
Reported-by: Tetsuo Handa <[email protected]>
Signed-off-by: Sagi Grimberg <[email protected]>
Reviewed-by: Chaitanya Kulkarni <[email protected]>
Signed-off-by: Christoph Hellwig <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
