All of lore.kernel.org
 help / color / mirror / Atom feed
* [Ocfs2-devel] [PATCH V2] ocfs2: break useless while loop
@ 2012-08-10  5:52 Junxiao Bi
  2012-08-10  5:54 ` Junxiao Bi
  0 siblings, 1 reply; 2+ messages in thread
From: Junxiao Bi @ 2012-08-10  5:52 UTC (permalink / raw)
  To: ocfs2-devel

Signed-off-by: Junxiao Bi <junxiao.bi@oracle.com>
Acked-by: Sunil Mushran <sunil.mushran@gmail.com>
---
 fs/ocfs2/dlm/dlmmaster.c |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/fs/ocfs2/dlm/dlmmaster.c b/fs/ocfs2/dlm/dlmmaster.c
index 005261c..1fadc39 100644
--- a/fs/ocfs2/dlm/dlmmaster.c
+++ b/fs/ocfs2/dlm/dlmmaster.c
@@ -1888,8 +1888,10 @@ ok:
 			 * up nodes that this node contacted */
 			while ((nn = find_next_bit (mle->response_map, O2NM_MAX_NODES,
 						    nn+1)) < O2NM_MAX_NODES) {
-				if (nn != dlm->node_num && nn != assert->node_idx)
+				if (nn != dlm->node_num && nn != assert->node_idx) {
 					master_request = 1;
+					break;
+				}
 			}
 		}
 		mle->master = assert->node_idx;
-- 
1.7.9.5

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [Ocfs2-devel] [PATCH V2] ocfs2: break useless while loop
  2012-08-10  5:52 [Ocfs2-devel] [PATCH V2] ocfs2: break useless while loop Junxiao Bi
@ 2012-08-10  5:54 ` Junxiao Bi
  0 siblings, 0 replies; 2+ messages in thread
From: Junxiao Bi @ 2012-08-10  5:54 UTC (permalink / raw)
  To: ocfs2-devel

Hi Joel,

Could you merge this patch?

On 08/10/2012 01:52 PM, Junxiao Bi wrote:
> Signed-off-by: Junxiao Bi <junxiao.bi@oracle.com>
> Acked-by: Sunil Mushran <sunil.mushran@gmail.com>
> ---
>  fs/ocfs2/dlm/dlmmaster.c |    4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/fs/ocfs2/dlm/dlmmaster.c b/fs/ocfs2/dlm/dlmmaster.c
> index 005261c..1fadc39 100644
> --- a/fs/ocfs2/dlm/dlmmaster.c
> +++ b/fs/ocfs2/dlm/dlmmaster.c
> @@ -1888,8 +1888,10 @@ ok:
>  			 * up nodes that this node contacted */
>  			while ((nn = find_next_bit (mle->response_map, O2NM_MAX_NODES,
>  						    nn+1)) < O2NM_MAX_NODES) {
> -				if (nn != dlm->node_num && nn != assert->node_idx)
> +				if (nn != dlm->node_num && nn != assert->node_idx) {
>  					master_request = 1;
> +					break;
> +				}
>  			}
>  		}
>  		mle->master = assert->node_idx;

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-08-10  5:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-10  5:52 [Ocfs2-devel] [PATCH V2] ocfs2: break useless while loop Junxiao Bi
2012-08-10  5:54 ` Junxiao Bi

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.