RDMA: Update workqueue usage
* ib_wq is added, which is used as the common workqueue for infiniband instead of the system workqueue. All system workqueue usages including flush_scheduled_work() callers are converted to use and flush ib_wq. * cancel_delayed_work() + flush_scheduled_work() converted to cancel_delayed_work_sync(). * qib_wq is removed and ib_wq is used instead. This is to prepare for deprecation of flush_scheduled_work(). Signed-off-by: Tejun Heo <tj@kernel.org> Signed-off-by: Roland Dreier <rolandd@cisco.com>
此提交包含在:
@@ -805,7 +805,6 @@ static inline int qib_send_ok(struct qib_qp *qp)
|
||||
!(qp->s_flags & QIB_S_ANY_WAIT_SEND));
|
||||
}
|
||||
|
||||
extern struct workqueue_struct *qib_wq;
|
||||
extern struct workqueue_struct *qib_cq_wq;
|
||||
|
||||
/*
|
||||
@@ -814,7 +813,7 @@ extern struct workqueue_struct *qib_cq_wq;
|
||||
static inline void qib_schedule_send(struct qib_qp *qp)
|
||||
{
|
||||
if (qib_send_ok(qp))
|
||||
queue_work(qib_wq, &qp->s_work);
|
||||
queue_work(ib_wq, &qp->s_work);
|
||||
}
|
||||
|
||||
static inline int qib_pkey_ok(u16 pkey1, u16 pkey2)
|
||||
|
新增問題並參考
封鎖使用者