26:35:
> [image removed]
>
> Re: [PATCH] IB/ehca: Reduce number of spin_lock/spin_unlocks in
ehca_poll_eqs
>
> Roland Dreier
>
> to:
>
> Anton Blanchard
>
> 30.11.2009 06:26
>
> Cc:
>
> Hoang-Nam Nguyen, Christoph Raisch, Stefan Rosche
> +
> spin_lock_irqsave(&eq->spinlock, flags);
> +
> q_ofs = eq->ipz_queue.current_q_offset;
> -spin_unlock_irqrestore(&eq->spinlock, flags);
> do {
> -spin_lock_irqsave(&eq->spinl
ftrace function_graph shows ehca_poll_eqs taking and dropping a spinlock
a lot:
16) | .ehca_poll_eqs() {
16) 0.492 us|._spin_lock();
16) 0.504 us|._spin_lock_irqsave();
16) 0.502 us|._spin_unlock_irqrestore();
16)