dm-devel.redhat.com archive mirror
 help / color / mirror / Atom feed
From: Mike Snitzer <snitzer@redhat.com>
To: Wonhong Kwon <wonhong.kwon@lge.com>
Cc: gunho.lee@lge.com, dm-devel@redhat.com, agk@redhat.com
Subject: Re: dm: add swap_slot_free_notify handler
Date: Wed, 21 Sep 2016 20:14:28 -0400	[thread overview]
Message-ID: <20160922001428.GA12676@redhat.com> (raw)
In-Reply-To: <1474499386-27436-1-git-send-email-wonhong.kwon@lge.com>

On Wed, Sep 21 2016 at  7:09pm -0400,
Wonhong Kwon <wonhong.kwon@lge.com> wrote:

> swap_slot_free_notify callback has been added to block_device_operations to
> allow freeing memory allocated by RAM-based swap device like zram or zswap
> more aggressively.
> 
> In case of device mapper, it is also required if mapped target is being
> used as swap device and it uses some in-memory metadata for swap entries.
> This patch introduces swap_slot_free_notify callback into dm_blk_ops and
> target device can implement its own handler to handle this via
> slot_free_notify in target_type.
> 
> Signed-off-by: Wonhong Kwon <wonhong.kwon@lge.com>

This change to DM core only makes sense once we have an upstream DM
target that implements slot_free_notify hook.

  reply	other threads:[~2016-09-22  0:14 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-21 23:09 [PATCH] dm: add swap_slot_free_notify handler Wonhong Kwon
2016-09-22  0:14 ` Mike Snitzer [this message]
2016-10-03 22:53   ` David Kwon (권원홍)

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=20160922001428.GA12676@redhat.com \
    --to=snitzer@redhat.com \
    --cc=agk@redhat.com \
    --cc=dm-devel@redhat.com \
    --cc=gunho.lee@lge.com \
    --cc=wonhong.kwon@lge.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).