* [ PATCH ] Memory leak fix for bug 57101.
@ 2013-04-25 10:05 Anurup m
2013-04-25 11:31 ` Li Zefan
0 siblings, 1 reply; 5+ messages in thread
From: Anurup m @ 2013-04-25 10:05 UTC (permalink / raw)
To: 'linux-kernel@vger.kernel.org'; +Cc: shyju pv, Sanil kumar, Nataraj m
Hi All,
There is a kernel memory leak observed when the proc file /proc/fs/fscache/stats is read.
The reason is that in fscache_stats_open, single_open is called and respective release function is not called during release.
Hence fix with correct release function - single_release. The patch is as below
diff -uprN -X linux-3.9-rc8-vanilla/Documentation/dontdiff linux-3.9-rc8-vanilla/fs/fscache/stats.c linux-3.9-rc8.mod/fs/fscache/stats.c
--- linux-3.9-rc8-vanilla/fs/fscache/stats.c 2013-04-22 03:08:45.000000000 +0530
+++ linux-3.9-rc8.mod/fs/fscache/stats.c 2013-04-24 23:03:31.531296160 +0530
@@ -287,5 +287,5 @@ const struct file_operations fscache_sta
.open = fscache_stats_open,
.read = seq_read,
.llseek = seq_lseek,
- .release = seq_release,
+ .release = single_release,
};
Regards,
Anurup M
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [ PATCH ] Memory leak fix for bug 57101.
2013-04-25 10:05 [ PATCH ] Memory leak fix for bug 57101 Anurup m
@ 2013-04-25 11:31 ` Li Zefan
2013-04-25 13:49 ` Anurup m
0 siblings, 1 reply; 5+ messages in thread
From: Li Zefan @ 2013-04-25 11:31 UTC (permalink / raw)
To: Anurup m
Cc: 'linux-kernel@vger.kernel.org', shyju pv, Sanil kumar,
Nataraj m
On 2013/4/25 18:05, Anurup m wrote:
> Hi All,
>
> There is a kernel memory leak observed when the proc file /proc/fs/fscache/stats is read.
> The reason is that in fscache_stats_open, single_open is called and respective release function is not called during release.
> Hence fix with correct release function - single_release. The patch is as below
>
The fix is obviously corect, but the patch is mangled so you should configure your
email client properly. Read Documention/email-clients.txt.
And when you've done that, remember Cc maintainers when you resend this patch, i.e.
David Howells <dhowells@redhat.com> and Andrew Morton <akpm@linux-foundation.org>
in this case.
> diff -uprN -X linux-3.9-rc8-vanilla/Documentation/dontdiff linux-3.9-rc8-vanilla/fs/fscache/stats.c linux-3.9-rc8.mod/fs/fscache/stats.c
> --- linux-3.9-rc8-vanilla/fs/fscache/stats.c 2013-04-22 03:08:45.000000000 +0530
> +++ linux-3.9-rc8.mod/fs/fscache/stats.c 2013-04-24 23:03:31.531296160 +0530
> @@ -287,5 +287,5 @@ const struct file_operations fscache_sta
> .open = fscache_stats_open,
> .read = seq_read,
> .llseek = seq_lseek,
> - .release = seq_release,
> + .release = single_release,
Look the tab was replaced with spaces.
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: [ PATCH ] Memory leak fix for bug 57101.
2013-04-25 11:31 ` Li Zefan
@ 2013-04-25 13:49 ` Anurup m
2013-04-25 20:29 ` Andrew Morton
0 siblings, 1 reply; 5+ messages in thread
From: Anurup m @ 2013-04-25 13:49 UTC (permalink / raw)
To: 'linux-kernel@vger.kernel.org'
Cc: 'David Howells', 'Andrew Morton', Lizefan,
shyju pv, Sanil kumar, Nataraj m
Hi All,
Resending the patch as Plain text, with no mangled tabs.
The patch is as below
diff -uprN -X linux-3.9-rc8-vanilla/Documentation/dontdiff linux-3.9-rc8-vanilla/fs/fscache/stats.c linux-3.9-rc8.mod/fs/fscache/stats.c
--- linux-3.9-rc8-vanilla/fs/fscache/stats.c 2013-04-22 03:08:45.000000000 +0530
+++ linux-3.9-rc8.mod/fs/fscache/stats.c 2013-04-24 23:03:31.531296160 +0530
@@ -287,5 +287,5 @@ const struct file_operations fscache_sta
.open = fscache_stats_open,
.read = seq_read,
.llseek = seq_lseek,
- .release = seq_release,
+ .release = single_release,
};
Regards,
Anurup M
-----Original Message-----
From: Lizefan
Sent: 2013年4月25日 17:01
To: Anurup m
Cc: 'linux-kernel@vger.kernel.org'; shyju pv; Sanil kumar; Nataraj m
Subject: Re: [ PATCH ] Memory leak fix for bug 57101.
On 2013/4/25 18:05, Anurup m wrote:
> Hi All,
>
> There is a kernel memory leak observed when the proc file /proc/fs/fscache/stats is read.
> The reason is that in fscache_stats_open, single_open is called and respective release function is not called during release.
> Hence fix with correct release function - single_release. The patch is as below
>
The fix is obviously corect, but the patch is mangled so you should configure your
email client properly. Read Documention/email-clients.txt.
And when you've done that, remember Cc maintainers when you resend this patch, i.e.
David Howells <dhowells@redhat.com> and Andrew Morton <akpm@linux-foundation.org>
in this case.
> diff -uprN -X linux-3.9-rc8-vanilla/Documentation/dontdiff linux-3.9-rc8-vanilla/fs/fscache/stats.c linux-3.9-rc8.mod/fs/fscache/stats.c
> --- linux-3.9-rc8-vanilla/fs/fscache/stats.c 2013-04-22 03:08:45.000000000 +0530
> +++ linux-3.9-rc8.mod/fs/fscache/stats.c 2013-04-24 23:03:31.531296160 +0530
> @@ -287,5 +287,5 @@ const struct file_operations fscache_sta
> .open = fscache_stats_open,
> .read = seq_read,
> .llseek = seq_lseek,
> - .release = seq_release,
> + .release = single_release,
Look the tab was replaced with spaces.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [ PATCH ] Memory leak fix for bug 57101.
2013-04-25 13:49 ` Anurup m
@ 2013-04-25 20:29 ` Andrew Morton
2013-04-26 9:18 ` Anurup m
0 siblings, 1 reply; 5+ messages in thread
From: Andrew Morton @ 2013-04-25 20:29 UTC (permalink / raw)
To: Anurup m
Cc: 'linux-kernel@vger.kernel.org', 'David Howells',
Lizefan, shyju pv, Sanil kumar, Nataraj m
On Thu, 25 Apr 2013 13:49:12 +0000 Anurup m <anurup.m@huawei.com> wrote:
> Resending the patch as Plain text, with no mangled tabs.
Please send us a Signed-off-by: for this, as described in
Documentation/SubmittingPatches, thanks.
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: [ PATCH ] Memory leak fix for bug 57101.
2013-04-25 20:29 ` Andrew Morton
@ 2013-04-26 9:18 ` Anurup m
0 siblings, 0 replies; 5+ messages in thread
From: Anurup m @ 2013-04-26 9:18 UTC (permalink / raw)
To: 'Andrew Morton'
Cc: 'linux-kernel@vger.kernel.org', 'David Howells',
Lizefan, shyju pv, Sanil kumar, Nataraj m
Hi,
Please find the Signed-off-by for my patch.
Signed-off-by: Anurup m <anurup.m@huawei.com>
Regards,
Anurup M
-----Original Message-----
From: Andrew Morton [mailto:akpm@linux-foundation.org]
Sent: 2013年4月26日 1:59
To: Anurup m
Cc: 'linux-kernel@vger.kernel.org'; 'David Howells'; Lizefan; shyju pv; Sanil kumar; Nataraj m
Subject: Re: [ PATCH ] Memory leak fix for bug 57101.
On Thu, 25 Apr 2013 13:49:12 +0000 Anurup m <anurup.m@huawei.com> wrote:
> Resending the patch as Plain text, with no mangled tabs.
Please send us a Signed-off-by: for this, as described in
Documentation/SubmittingPatches, thanks.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2013-04-26 9:19 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-25 10:05 [ PATCH ] Memory leak fix for bug 57101 Anurup m
2013-04-25 11:31 ` Li Zefan
2013-04-25 13:49 ` Anurup m
2013-04-25 20:29 ` Andrew Morton
2013-04-26 9:18 ` Anurup m
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.