lkml.org 
[lkml]   [2016]   [Apr]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Date
    Subject[PATCH 3.16 078/217] bcache: Fix more early shutdown bugs
    3.16.35-rc1 review patch.  If anyone has any objections, please let me know.

    ------------------

    From: Kent Overstreet <kmo@daterainc.com>

    commit d83353b319d47ef8cce82467da6a25c2d558253f upstream.

    Signed-off-by: Kent Overstreet <kmo@daterainc.com>
    Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
    ---
    drivers/md/bcache/super.c | 7 ++++---
    1 file changed, 4 insertions(+), 3 deletions(-)

    --- a/drivers/md/bcache/super.c
    +++ b/drivers/md/bcache/super.c
    @@ -735,8 +735,6 @@ static void bcache_device_detach(struct
    static void bcache_device_attach(struct bcache_device *d, struct cache_set *c,
    unsigned id)
    {
    - BUG_ON(test_bit(CACHE_SET_STOPPING, &c->flags));
    -
    d->id = id;
    d->c = c;
    c->devices[id] = d;
    @@ -1765,6 +1763,7 @@ found:
    pr_debug("set version = %llu", c->sb.version);
    }

    + kobject_get(&ca->kobj);
    ca->set = c;
    ca->set->cache[ca->sb.nr_this_dev] = ca;
    c->cache_by_alloc[c->caches_loaded++] = ca;
    @@ -1882,10 +1881,12 @@ static void register_cache(struct cache_
    goto err;

    pr_info("registered cache device %s", bdevname(bdev, name));
    +out:
    + kobject_put(&ca->kobj);
    return;
    err:
    pr_notice("error opening %s: %s", bdevname(bdev, name), err);
    - kobject_put(&ca->kobj);
    + goto out;
    }

    /* Global interfaces/init */
    \
     
     \ /
      Last update: 2016-04-27 03:01    [W:3.448 / U:0.076 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site