From patchwork Fri Jan 22 18:11:13 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ira Weiny X-Patchwork-Id: 74710 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.2) with ESMTP id o0MIF9Yx023472 for ; Fri, 22 Jan 2010 18:15:09 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756049Ab0AVSPI (ORCPT ); Fri, 22 Jan 2010 13:15:08 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753502Ab0AVSPI (ORCPT ); Fri, 22 Jan 2010 13:15:08 -0500 Received: from nspiron-2.llnl.gov ([128.115.41.82]:48030 "EHLO nspiron-2.llnl.gov" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756049Ab0AVSPG (ORCPT ); Fri, 22 Jan 2010 13:15:06 -0500 X-Attachments: None Received: from mail-2.llnl.gov ([128.115.41.181]) by nspiron-2.llnl.gov with ESMTP; 22 Jan 2010 10:15:03 -0800 Received: from jeepcj7.llnl.gov (jeepcj7.llnl.gov [134.9.93.67]) by mail-2.llnl.gov (8.13.1/8.12.3/LLNL evision: 1.7 $) with SMTP id o0MIEkm4017940; Fri, 22 Jan 2010 10:14:46 -0800 Date: Fri, 22 Jan 2010 10:11:13 -0800 From: Ira Weiny To: Ira Weiny Cc: Sasha Khapyorsky , "linux-rdma@vger.kernel.org" Subject: And I found the other reason (Re: Found one reason libibnetdisc is slower than subnet_discover) Message-Id: <20100122101113.16c6bd20.weiny2@llnl.gov> In-Reply-To: <20100121181418.a9e955bb.weiny2@llnl.gov> References: <20100121181418.a9e955bb.weiny2@llnl.gov> X-Mailer: Sylpheed 2.6.0 (GTK+ 2.10.4; x86_64-unknown-linux-gnu) Mime-Version: 1.0 Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org diff --git a/tests/subnet_discover.c b/tests/subnet_discover.c index acc8c23..22b092a 100644 --- a/tests/subnet_discover.c +++ b/tests/subnet_discover.c @@ -189,7 +189,7 @@ static void run_request_queue(int fd, int agent) struct request_queue *q = request_queue.next; while (q) { - if (outstanding > max_outstanding) + if (outstanding >= max_outstanding) break; if (send_request(fd, agent, q->trid, q->path, q->path_cnt, q->attr_id, q->attr_mod) < 0)