lkml.org 
[lkml]   [2018]   [Feb]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    Date
    SubjectRe: [PATCH v2] efivarfs: Limit the rate for non-root to read files
    On Thu, Feb 22, 2018 at 9:15 AM, Luck, Tony <tony.luck@intel.com> wrote:
    >
    > In efivarfs if the limit is exceeded when reading, we take an
    > interruptible nap for 50ms and check the rate limit again.

    Ok, turning that 'if' into a 'while' makes the sleeping work even in
    the presence of lots of threads, and that all looks very simple.

    I'm certainly ok with this. I'm assuming this has been tested and
    gives nice warnings too?

    Linus

    \
     
     \ /
      Last update: 2018-02-22 18:40    [W:2.172 / U:0.700 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site