lkml.org 
[lkml]   [2016]   [Oct]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Subject[PATCH 06/15] md-cluster: Rename a jump label in recv_daemon()
    From
    Date
    From: Markus Elfring <elfring@users.sourceforge.net>
    Date: Sat, 1 Oct 2016 12:36:30 +0200

    Adjust a jump label according to the Linux coding style convention.

    Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
    ---
    drivers/md/md-cluster.c | 4 ++--
    1 file changed, 2 insertions(+), 2 deletions(-)

    diff --git a/drivers/md/md-cluster.c b/drivers/md/md-cluster.c
    index adf9555..94835b5 100644
    --- a/drivers/md/md-cluster.c
    +++ b/drivers/md/md-cluster.c
    @@ -620,7 +620,7 @@ static void recv_daemon(struct md_thread *thread)
    memcpy(&msg, message_lockres->lksb.sb_lvbptr, sizeof(msg));
    ret = process_recvd_msg(thread->mddev, &msg);
    if (ret)
    - goto out;
    + goto unlock;

    /*release CR on ack_lockres*/
    ret = dlm_unlock_sync(ack_lockres);
    @@ -634,7 +634,7 @@ static void recv_daemon(struct md_thread *thread)
    ret = dlm_lock_sync(ack_lockres, DLM_LOCK_CR);
    if (unlikely(ret != 0))
    pr_info("lock CR on ack failed return %d\n", ret);
    -out:
    +unlock:
    /*release CR on message_lockres*/
    ret = dlm_unlock_sync(message_lockres);
    if (unlikely(ret != 0))
    --
    2.10.0
    \
     
     \ /
      Last update: 2016-10-01 16:52    [W:4.104 / U:0.860 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site