All of lore.kernel.org
 help / color / mirror / Atom feed
* Allow read IO during share block breaking in dm-thin
@ 2013-08-23  2:35 Teng-Feng Yang
  2013-08-23  9:59 ` Joe Thornber
  2013-08-23 20:45 ` Mikulas Patocka
  0 siblings, 2 replies; 3+ messages in thread
From: Teng-Feng Yang @ 2013-08-23  2:35 UTC (permalink / raw)
  To: dm-devel

Hi folks,

I have tried to perform some experiments and enhance dm-thin with some
new features for couple of weeks.
I notice that dm-thin uses a dm_deferred_set data structure to record
all the share read IO and inserts new data mappings only when all
share read IO are quiesced.
This method is quite similar to the block tracking mechanism used by
dm-snap, which tries to prevent write IO to the origin device from
overwriting the block when some read IO from snap device has not yet
completed
Although it is reasonable to have something like this in dm-snap, it
looks like an overkill to have the similar mechanism in dm-thin.
Since the "redirect-on-write" nature of dm-thin makes all write IOs to
a share block writes in a new allocated block instead, all preceding
share read IO will still read the correct data even when there are
multiple share write IO on-the-fly.
So here is my question, do we really need to quiesce all share read
IOs before adding a new data mapping, or the share read IO's deferred
set is meant to deal with some other problems?

Any help would be grateful.
Thanks

Dennis

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

end of thread, other threads:[~2013-08-23 20:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-23  2:35 Allow read IO during share block breaking in dm-thin Teng-Feng Yang
2013-08-23  9:59 ` Joe Thornber
2013-08-23 20:45 ` Mikulas Patocka

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.