]> git.baikalelectronics.ru Git - kernel.git/commit
cm: Don't allocate ib_cm workqueue with WQ_MEM_RECLAIM
authorSagi Grimberg <sagi@grimberg.me>
Tue, 15 Aug 2017 19:20:37 +0000 (22:20 +0300)
committerDoug Ledford <dledford@redhat.com>
Fri, 18 Aug 2017 14:46:20 +0000 (10:46 -0400)
commit10e568cc05e9feaa637d1df16cc55436e164b197
treea2678a89f87468553f36bb32594dffbe245db78f
parent098fc2d40d44bec98b3e70a092e0dd4dacd34d93
cm: Don't allocate ib_cm workqueue with WQ_MEM_RECLAIM

create_workqueue always creates the workqueue with WQ_MEM_RECLAIM
and silences a flush dependency warn for WQ_LEGACY. Instead, we
want to keep the warn in case the allocator tries to flush the
cm workqueue because its very likely that cm work execution will
yield memory allocations (for example cm connection requests).

Reported-by: Steve Wise <swise@opengridcomputing.com>
Reviewed-by: Steve Wise <swise@opengridcomputing.com>
Reviewed-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/core/cm.c