Re: [PATCH 3/3] swiotlb: replace free array with bitmap
From: Muli Ben-Yehuda
Date: Sun May 07 2006 - 04:54:49 EST
On Thu, May 04, 2006 at 04:00:17PM -0500, Jon Mason wrote:
> + index = find_next_zero_string(io_tlb_list, io_tlb_index,
> + io_tlb_nslabs, nslots);
> + if (index == ~0U) {
> + index = find_next_zero_string(io_tlb_list, 0,
> + io_tlb_nslabs, nslots);
> + if (index == ~0U)
> + return NULL;
If we run out of space in the bitmap we return here with the
io_tlb_lock held. Also, an informative message saying that we've run
out of space in the bitmap is probably a good idea.
Cheers,
Muli
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/