[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20220427133420.2847e62203b9e10a106c86b2@linux-foundation.org>
Date: Wed, 27 Apr 2022 13:34:20 -0700
From: Andrew Morton <akpm@...ux-foundation.org>
To: Vlastimil Babka <vbabka@...e.cz>
Cc: Alexey Dobriyan <adobriyan@...il.com>,
Matthew Wilcox <willy@...radead.org>,
"Alex Xu (Hello71)" <alex_y_xu@...oo.ca>,
Daniel Colascione <dancol@...gle.com>,
linux-api@...r.kernel.org, linux-fsdevel@...r.kernel.org,
linux-kernel@...r.kernel.org, linux-mm@...ck.org
Subject: Re: [PATCH] mm/smaps_rollup: return empty file for kthreads instead
of ESRCH
On Thu, 14 Apr 2022 09:38:14 +0200 Vlastimil Babka <vbabka@...e.cz> wrote:
> > Returning ESRCH is better so that programs don't waste time reading and
> > closing empty files and instantiating useless inodes.
>
> Hm, unfortunately I don't remember why I put return -ESRCH for this case in
> addition to get_proc_task() failing. I doubt it was a conscious decision to
> treat kthreads differently - I think I would have preferred consistency with
> maps/smaps.
>
> Can the awk use case be fixed with some flag to make it ignore the errors?
This is all too hard. I think I'll drop the patch for now.
Powered by blists - more mailing lists