cluster-devel.redhat.com archive mirror
 help / color / mirror / Atom feed
From: Guoqing Jiang <gqJiang@suse.com>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] [PATCH] dlm: remove unnecessary error check
Date: Wed, 17 Jun 2015 10:14:55 +0800	[thread overview]
Message-ID: <5580D81F.3090308@suse.com> (raw)
In-Reply-To: <20150611161843.GA20918@redhat.com>

Hi David,

David Teigland wrote:
> On Thu, Jun 11, 2015 at 05:47:28PM +0800, Guoqing Jiang wrote:
>   
>> Do you consider take the following clean up? If yes, I will send a
>> formal patch, otherwise pls ignore it.
>>     
>
> On first glance, the old and new code do not appear to do the same thing,
> so let's leave it as it is.
>
>   
>> -       to_nodeid = dlm_dir_nodeid(r);
>>     
Sorry, seems it is the only different thing, if combines previous change
with below modification, then the behavior is same.

@@ -3644,7 +3644,10 @@ static int send_common(struct dlm_rsb *r, struct
dlm_lkb *lkb, int mstype)
        struct dlm_mhandle *mh;
        int to_nodeid, error;
 
-       to_nodeid = r->res_nodeid;
+       if (mstype == DLM_MSG_LOOKUP)
+               to_nodeid = dlm_dir_nodeid(r);
+       else
+               to_nodeid = r->res_nodeid;

And for create_message, the second parameter (lkb) is not effective to
create three type msgs (REQUEST/LOOKUP/REMOVE).

Thanks,
Guoqing



      reply	other threads:[~2015-06-17  2:14 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-09  9:46 [Cluster-devel] [PATCH] dlm: remove unnecessary error check Guoqing Jiang
2015-06-09 12:09 ` Bob Peterson
2015-06-10  2:39   ` Guoqing Jiang
2015-06-10  2:50     ` Bob Peterson
2015-06-10  3:10       ` Guoqing Jiang
2015-06-10 12:26         ` Bob Peterson
2015-06-11  2:39           ` Guoqing Jiang
2015-06-10 15:24         ` David Teigland
2015-06-11  9:47           ` Guoqing Jiang
2015-06-11 16:18             ` David Teigland
2015-06-17  2:14               ` Guoqing Jiang [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5580D81F.3090308@suse.com \
    --to=gqjiang@suse.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).