All of lore.kernel.org
 help / color / mirror / Atom feed
* dm-cache invalidate_cblocks range parsing
@ 2013-11-24  2:25 Mears, Morgan
  2013-11-25  9:50 ` Joe Thornber
  2013-11-25 22:46 ` Alasdair G Kergon
  0 siblings, 2 replies; 8+ messages in thread
From: Mears, Morgan @ 2013-11-24  2:25 UTC (permalink / raw)
  To: dm-devel@redhat.com

If one specifies a cblock range in the dm-cache invalidate_cblocks message
(commit 65790ff919e2e07ccb4457415c11075b245d643b), the final cblock in the 
range does not get invalidated.  For example, after:

	dmsetup message cache 0 invalidate_cblocks 10-11

cblock 11 will still be in the cache.  The reason is the (begin != end)
check in process_invalidation_request() (dm-cache-target.c); were it to
change to (begin <= end), the final block would be treated like the rest.

However, parse_cblock_range() relies on the current behavior for the single
block case; if the change above were applied, an extra block would be
invalidated for each single-block invalidation request.

So: is the current behavior intentional?

--Morgan

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2013-11-27 12:12 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-24  2:25 dm-cache invalidate_cblocks range parsing Mears, Morgan
2013-11-25  9:50 ` Joe Thornber
2013-11-25 10:00   ` Joe Thornber
2013-11-25 22:46 ` Alasdair G Kergon
2013-11-26 16:20   ` Mike Snitzer
2013-11-26 16:39     ` Alasdair G Kergon
2013-11-26 16:54     ` Alasdair G Kergon
2013-11-27 12:12   ` Joe Thornber

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.