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


Groups > linux.kernel > #1514852

Re: [PATCH] z3fold: make pages_nr atomic

From Vitaly Wool <vitalywool@gmail.com>
Newsgroups linux.kernel
Subject Re: [PATCH] z3fold: make pages_nr atomic
Date 2016-11-03 22:30 +0100
Message-ID <szxK9-Rd-27@gated-at.bofh.it> (permalink)
References <szxqN-KH-5@gated-at.bofh.it> <szxAu-NU-17@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Thu, Nov 3, 2016 at 10:14 PM, Andrew Morton
<akpm@linux-foundation.org> wrote:
> On Thu, 3 Nov 2016 22:00:58 +0100 Vitaly Wool <vitalywool@gmail.com> wrote:
>
>> This patch converts pages_nr per-pool counter to atomic64_t.
>
> Which is slower.
>
> Presumably there is a reason for making this change.  This reason
> should be described in the changelog.

The reason [which I thought was somewhat obvious :) ] is that there
won't be a need to take a per-pool lock to read or modify that
counter.

Best regards,
   Vitaly

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH] z3fold: make pages_nr atomic Vitaly Wool <vitalywool@gmail.com> - 2016-11-03 22:10 +0100
  Re: [PATCH] z3fold: make pages_nr atomic Andrew Morton <akpm@linux-foundation.org> - 2016-11-03 22:20 +0100
    Re: [PATCH] z3fold: make pages_nr atomic Vitaly Wool <vitalywool@gmail.com> - 2016-11-03 22:30 +0100
      Re: [PATCH] z3fold: make pages_nr atomic Andrew Morton <akpm@linux-foundation.org> - 2016-11-03 23:20 +0100
        Re: [PATCH] z3fold: make pages_nr atomic Vitaly Wool <vitalywool@gmail.com> - 2016-11-04 08:30 +0100

csiph-web