[dm-devel] Review of dm-block-manager.c

Joe Thornber thornber at redhat.com
Tue Aug 2 13:29:00 UTC 2011


On Tue, Aug 02, 2011 at 02:07:55PM +0100, Joe Thornber wrote:
> There isn't that degree of parallelism.  We can't have multiple
> threads pulling the cache in different directions for performance
> reasons.  So we have multiple threads that use this in a non-blocking
> mode.  ie. they use the try_lock variants, and only get the data if
> it's already available in the cache.  If the non-blocking requests
> failed then it gets passed across for a worker thread to deal with.
> This is the only thread that updates the cache.  There is no issue
> here.

In fact because we have only a single mutator the block recycling
concerns are not an issue for thinp, though they should still be
fixed.

- Joe




More information about the dm-devel mailing list