Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1401341 > unrolled thread

Re: [PATCH] mm: unhide vmstat_text definition for CONFIG_SMP

Started byMichal Hocko <mhocko@kernel.org>
First post2016-05-16 09:40 +0200
Last post2016-05-16 09:40 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH] mm: unhide vmstat_text definition for CONFIG_SMP Michal Hocko <mhocko@kernel.org> - 2016-05-16 09:40 +0200

#1401341 — Re: [PATCH] mm: unhide vmstat_text definition for CONFIG_SMP

FromMichal Hocko <mhocko@kernel.org>
Date2016-05-16 09:40 +0200
SubjectRe: [PATCH] mm: unhide vmstat_text definition for CONFIG_SMP
Message-ID<rzli9-42X-7@gated-at.bofh.it>
On Wed 11-05-16 10:32:11, Christoph Lameter wrote:
> Subject: Do not build vmstat_refresh if there is no procfs support
> 
> It makes no sense to build functionality into the kernel that
> cannot be used and causes build issues.
> 
> Signed-off-by: Christoph Lameter <cl@linux.com>
> 
> Index: linux/mm/vmstat.c
> ===================================================================
> --- linux.orig/mm/vmstat.c
> +++ linux/mm/vmstat.c
> @@ -1358,7 +1358,6 @@ static const struct file_operations proc
>  	.llseek		= seq_lseek,
>  	.release	= seq_release,
>  };
> -#endif /* CONFIG_PROC_FS */
> 
>  #ifdef CONFIG_SMP
>  static struct workqueue_struct *vmstat_wq;

This doesn't work because it makes the whole vmstat_wq depend on
CONFIG_PROC_FS. Which is obviously bad because we both rely on doing the
periodic sync even when counters are not exported to the userspace and
it wound't compile anyway...
-- 
Michal Hocko
SUSE Labs

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web