All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] dm: replace atomic_t reference counters with refcount_t
@ 2018-08-23 17:35 John Pittman
  2018-08-23 17:35 ` [PATCH 1/3] dm thin: use refcount_t for thin_c reference counting John Pittman
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: John Pittman @ 2018-08-23 17:35 UTC (permalink / raw)
  To: snitzer; +Cc: dm-devel


This series of patches further integrates the refcount_t API into
the device-mapper layer.  The refcount_t API works to prevent counter
overflows and use-after-free bugs, so should make the
mechanism more robust, and make troubleshooting easier. Adding here
to dm-thin and dm-zoned.

Refcounters changed listed below:
 struct thin_c -> refcount
 struct dmz_bioctx -> ref
 struct dm_chunk_work -> refcount
 struct dmz_mblock -> ref
 struct dm_zone -> refcount

John Pittman (3):
 dm thin: use refcount_t for thin_c reference counting
 dm zoned: metadata: use refcount_t for dm zoned reference
 dm zoned: target: use refcount_t for dm zoned reference

 drivers/md/dm-thin.c | 8 ++++----
 drivers/md/dm-zoned-metadata.c | 25 +++++++++++++------------
 drivers/md/dm-zoned.h          |  2 +-
 drivers/md/dm-zoned-target.c | 20 ++++++++++----------

Best Regards,

John Pittman
Customer Engagement and Experience
Red Hat Inc.

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

end of thread, other threads:[~2018-10-17  2:59 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-08-23 17:35 [PATCH 0/3] dm: replace atomic_t reference counters with refcount_t John Pittman
2018-08-23 17:35 ` [PATCH 1/3] dm thin: use refcount_t for thin_c reference counting John Pittman
2018-08-23 17:35 ` [PATCH 2/3] dm zoned: metadata: use refcount_t for dm zoned reference counters John Pittman
2018-08-23 22:12   ` Damien Le Moal
2018-08-23 22:54     ` John Pittman
2018-10-16 18:33     ` Mike Snitzer
2018-10-17  2:59       ` Damien Le Moal
2018-08-23 17:35 ` [PATCH 3/3] dm zoned: target: " John Pittman
2018-08-23 22:12   ` Damien Le Moal

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.