[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAB0TPYEb-WdggSj=i+tpABfkO9KFqcgMc0twMx0L=ZcAN4HDfw@mail.gmail.com>
Date: Tue, 10 Sep 2019 10:55:58 +0200
From: Martijn Coenen <maco@...roid.com>
To: Mike Snitzer <snitzer@...hat.com>
Cc: Mikulas Patocka <mpatocka@...hat.com>, agk@...hat.com,
dm-devel@...hat.com, Dario Freni <dariofreni@...gle.com>,
Jiyong Park <jiyong@...gle.com>,
Greg KH <gregkh@...uxfoundation.org>,
LKML <linux-kernel@...r.kernel.org>,
Martijn Coenen <maco@...gle.com>,
Nikita Ioffe <ioffe@...gle.com>,
Narayan Kamath <narayan@...gle.com>, kernel-team@...roid.com
Subject: Re: dm-bufio: Allow clients to specify an upper bound on cache size.
Hi Mike,
On Mon, Sep 9, 2019 at 4:57 PM Mike Snitzer <snitzer@...hat.com> wrote:
> Definitely not very intuitive.. but yes I think it is a reasonable
> tradeoff between your goals and further code complexity to be able to
> achieve the "ideal".
Thanks for the feedback. I do have a patch for the "optimal"
allocation lying around as well, if you'd like to take a look. It's
not as bad as I thought, but it does require another list_head in
dm_bufio_client; other than that it's just O(N), so not so bad.
> Think the documented example can be made clearer by documenting that
> dm_bufio_cache_size_per_client = 49. And that _that_ is the reason why
> the client that didn't set a maximum is bounded to 49.
Ack, will send a v2 to clarify.
>
> Overall I think this patch looks reasonable, but I'd like Mikulas to
> review this closer before I pick it up.
Thanks; let me know if you want to see the alternative as an RFC, and
I'll clean it up and send it out.
Thanks,
Martijn
>
> Thanks,
> Mike
Powered by blists - more mailing lists