diff options
author | Mike Marciniszyn <mike.marciniszyn@qlogic.com> | 2011-12-23 13:03:41 (GMT) |
---|---|---|
committer | Roland Dreier <roland@purestorage.com> | 2012-01-04 04:53:31 (GMT) |
commit | 489471095170ed1c6d0341739a243461638b0e06 (patch) | |
tree | d5820187d1d24dac7526bba2dd4dafb47c1bb0b3 /drivers/infiniband/Kconfig | |
parent | eddfb675256f49d14e8c5763098afe3eb2c93701 (diff) | |
download | linux-fsl-qoriq-489471095170ed1c6d0341739a243461638b0e06.tar.xz |
IB/qib: Optimize locking for get_txreq()
The current code locks the QP s_lock, followed by the pending_lock, I
guess to to protect against the allocate failing.
This patch only locks the pending_lock, assuming that the empty case
is an exeception, in which case the pending_lock is dropped, and the
original code is executed. This will save a lock of s_lock in the
normal case.
The observation is that the sdma descriptors will deplete at twice the
rate of txreq's, so this should be rare.
Signed-off-by: Mike Marciniszyn <mike.marciniszyn@qlogic.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
Diffstat (limited to 'drivers/infiniband/Kconfig')
0 files changed, 0 insertions, 0 deletions