From: "David Kwon (=?EUC-KR?B?sce/+Mir?=)" Subject: Re: dm: add swap_slot_free_notify handler Date: Tue, 4 Oct 2016 07:53:02 +0900 Message-ID: References: <20160922001428.GA12676@redhat.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1846182594988227798==" Return-path: In-Reply-To: <20160922001428.GA12676@redhat.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dm-devel-bounces@redhat.com Errors-To: dm-devel-bounces@redhat.com To: Mike Snitzer Cc: gunho.lee@lge.com, dm-devel@redhat.com, agk@redhat.com List-Id: dm-devel.ids --===============1846182594988227798== Content-Type: multipart/alternative; boundary="B_3558412387_24745221" --B_3558412387_24745221 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="EUC-KR" Understood. Now I=A1=AFm developing some target which is using this interface locally, and I=A1=AFll send this patch again when I push this target to upstrea= m. From: Mike Snitzer Date: 2016=B3=E2 9=BF=F9 22=C0=CF =B8=F1=BF=E4=C0=CF =BF=C0=C0=FC 9:14 To: David Cc: , , '=C0=CC=B0=C7=C8=A3' Subject: Re: dm: add swap_slot_free_notify handler > On Wed, Sep 21 2016 at 7:09pm -0400, > Wonhong Kwon wrote: >=20 >> swap_slot_free_notify callback has been added to block_device_operation= s to >> allow freeing memory allocated by RAM-based swap device like zram or zs= wap >> more aggressively. >> =20 >> 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 entrie= s. >> This patch introduces swap_slot_free_notify callback into dm_blk_ops an= d >> target device can implement its own handler to handle this via >> slot_free_notify in target_type. >> =20 >> Signed-off-by: Wonhong Kwon >=20 > This change to DM core only makes sense once we have an upstream DM > target that implements slot_free_notify hook. >=20 --B_3558412387_24745221 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset="EUC-KR"
Understood. Now I’m dev= eloping some target which is using this interface locally, and I’ll se= nd this patch again when I push this target to upstream.

From: Mike Snitzer <snitzer@redhat.com>
Date: 2016=B3=E2 9=BF=F9 22=C0=CF =B8=F1=BF=E4=C0=CF =BF=C0=C0=FC 9:14
To: David <wonhon= g.kwon@lge.com>
Cc: <agk@redhat.com>, <dm-devel@redhat.com>, '=C0=CC=B0=C7=C8=A3' <gunho.lee@lge.com>
Subject: Re: dm: add swap_slot_free_notify handler
=
On W= ed, 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<= /div>
more aggressively.
In case of device mappe= r, it is also required if mapped target is being
used as swap dev= ice and it uses some in-memory metadata for swap entries.
This pa= tch introduces swap_slot_free_notify callback into dm_blk_ops and
= target device can implement its own handler to handle this via
s= lot_free_notify in target_type.
Signed-off-by: Wonhon= g Kwon <wonhong.kwon@lge.com>= ;

This change to DM core only makes se= nse once we have an upstream DM
target that implements slot_free_n= otify hook.

--B_3558412387_24745221-- --===============1846182594988227798== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline --===============1846182594988227798==--