]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
[IB] mthca: Fix doorbell record resource leak
authorRoland Dreier <rolandd@cisco.com>
Thu, 22 Sep 2005 04:40:12 +0000 (21:40 -0700)
committerRoland Dreier <rolandd@cisco.com>
Mon, 26 Sep 2005 16:38:26 +0000 (09:38 -0700)
commit018771f435388f22f388eb8658c652086fb3633e
treed18f3929acf5acff74a786f233ba8421bfe95c84
parent8ddec7460d2f5db3ac35812c03676b1473d1d668
[IB] mthca: Fix doorbell record resource leak

If we allocate a bunch of doorbell records and then free them, we'll
end up with completely empty pages, which we then free.  However, when
we come back to allocate more doorbell pages, we have to reallocate
those empty pages rather than always trying to take a slot that we've
never used.  If we don't, we eventually use up every slot and fail to
allocate a doorbell record, even though we have plenty of free space.

Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/mthca/mthca_memfree.c