lkml.org 
[lkml]   [2013]   [Dec]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[PATCH 25/40] md: Replace __this_cpu_ptr with raw_cpu_ptr
    [Patch depends on another patch in this series that introduces raw_cpu_ops]

    __this_cpu_ptr is being phased out.

    Signed-off-by: Christoph Lameter <cl@linux.com>

    Index: linux/drivers/md/dm-stats.c
    ===================================================================
    --- linux.orig/drivers/md/dm-stats.c 2013-12-02 16:07:54.904491557 -0600
    +++ linux/drivers/md/dm-stats.c 2013-12-02 16:07:54.904491557 -0600
    @@ -548,7 +548,7 @@ void dm_stats_account_io(struct dm_stats
    * A race condition can at worst result in the merged flag being
    * misrepresented, so we don't have to disable preemption here.
    */
    - last = __this_cpu_ptr(stats->last);
    + last = raw_cpu_ptr(stats->last);
    stats_aux->merged =
    (bi_sector == (ACCESS_ONCE(last->last_sector) &&
    ((bi_rw & (REQ_WRITE | REQ_DISCARD)) ==


    \
     
     \ /
      Last update: 2013-12-20 07:01    [W:3.908 / U:0.160 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site