Re: [PATCH] Replace completions with semaphores

From: Roland Dreier
Date: Wed Apr 16 2008 - 12:48:16 EST


> The cookies aren't checked by the kcounter implementation if
> CONFIG_DEBUG_KCOUNTER isn't set. So you can avoid storing them if it's
> *really* that important to shrink your data structures.

I guess if anyone cared we could have something analogous to
DECLARE_PCI_UNMAP_ADDR() et al that compiles to nothing if
CONFIG_DEBUG_KCOUNTER isn't set. But I'm not sure it's worth it.
Certainly for the mthca/mlx4 cases of semaphore use there's no problem
holding onto a cookie.

- R.
--
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/