31726798bd
This patch fixes two issues reported by Roland Dreier and Christoph Hellwig: - Mismatched sync/locking between completion handler and destroy cq We introduced a counter nr_events per cq to track number of irq events seen. This counter is incremented when an event queue entry is seen and decremented after completion handler has been called regardless if scaling code is active or not. Note that nr_callbacks tracks number of events assigned to a cpu and both counters can potentially diverge. The sync between running completion handler and destroy cq is done by using the global spin lock ehca_cq_idr_lock. - Replace yield by wait_event on the counter above to become zero. Signed-off-by: Hoang-Nam Nguyen <hnguyen@de.ibm.com> Signed-off-by: Roland Dreier <rolandd@cisco.com> |
||
---|---|---|
.. | ||
ehca_av.c | ||
ehca_classes_pSeries.h | ||
ehca_classes.h | ||
ehca_cq.c | ||
ehca_eq.c | ||
ehca_hca.c | ||
ehca_irq.c | ||
ehca_irq.h | ||
ehca_iverbs.h | ||
ehca_main.c | ||
ehca_mcast.c | ||
ehca_mrmw.c | ||
ehca_mrmw.h | ||
ehca_pd.c | ||
ehca_qes.h | ||
ehca_qp.c | ||
ehca_reqs.c | ||
ehca_sqp.c | ||
ehca_tools.h | ||
ehca_uverbs.c | ||
hcp_if.c | ||
hcp_if.h | ||
hcp_phyp.c | ||
hcp_phyp.h | ||
hipz_fns_core.h | ||
hipz_fns.h | ||
hipz_hw.h | ||
ipz_pt_fn.c | ||
ipz_pt_fn.h | ||
Kconfig | ||
Makefile |