From: Hannes Reinecke <hare@suse.de>
To: dm-devel@redhat.com
Cc: Alasdair Kergon <agk@redhat.com>
Subject: [PATCH] Device-mapper misc cleanup
Date: Mon, 19 Mar 2012 16:53:45 +0100 [thread overview]
Message-ID: <1332172428-35948-1-git-send-email-hare@suse.de> (raw)
This is small patchset for some cleanups I've found during
debugging other issues:
- Zero out bi_end_io: I always find it more convenient to
explictly zero out things we've set previously. No harm
done, but possibly easier debugging.
- Simplify call to free_devices(): free_devices() already
does a list_for_each(), so we don't have to check for
list_empty...
- Delayed cleanup for dm_table_destroy(): We have krefs
in the kernel, which does exactly what we want. And I
fail to see why we can't use them here. Plus we're
saving an msleep ...
Hannes Reinecke (3):
dm: zero out bi_end_io on remapping failure
dm-table: simplify call to free_devices()
dm-table: delayed cleanup for dm_table_destroy()
drivers/md/dm-table.c | 29 ++++++++++++++---------------
drivers/md/dm.c | 1 +
2 files changed, 15 insertions(+), 15 deletions(-)
next reply other threads:[~2012-03-19 15:53 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-19 15:53 Hannes Reinecke [this message]
2012-03-19 15:53 ` [PATCH] dm: zero out bi_end_io on remapping failure Hannes Reinecke
2012-03-19 15:53 ` [PATCH] dm-table: simplify call to free_devices() Hannes Reinecke
2012-03-19 15:53 ` [PATCH] dm-table: delayed cleanup for dm_table_destroy() Hannes Reinecke
2012-03-19 21:45 ` Mikulas Patocka
2012-03-20 15:35 ` Hannes Reinecke
2012-03-20 19:43 ` Mike Snitzer
2012-03-21 1:20 ` Mikulas Patocka
2012-03-21 1:24 ` [PATCH] " Mikulas Patocka
2012-03-21 5:34 ` Jun'ichi Nomura
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1332172428-35948-1-git-send-email-hare@suse.de \
--to=hare@suse.de \
--cc=agk@redhat.com \
--cc=dm-devel@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.