From patchwork Sun Apr 18 16:03:57 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sasha Khapyorsky X-Patchwork-Id: 93359 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o3IG3ilu002673 for ; Sun, 18 Apr 2010 16:03:45 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752955Ab0DRQDk (ORCPT ); Sun, 18 Apr 2010 12:03:40 -0400 Received: from mail-wy0-f174.google.com ([74.125.82.174]:65163 "EHLO mail-wy0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752354Ab0DRQDj (ORCPT ); Sun, 18 Apr 2010 12:03:39 -0400 Received: by wyb39 with SMTP id 39so2045738wyb.19 for ; Sun, 18 Apr 2010 09:03:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:received:date:from:to :cc:subject:message-id:references:mime-version:content-type :content-disposition:in-reply-to:user-agent; bh=8/BgEhzgwNSKoI5UxAVIxK3isjRHts6g60FyaWlW9p0=; b=IQqzodkMa8Ei8VENMTDSDcuiOFEWT0dhhTFICQiSRD7/00rtVyR00NpAKLr+6INie2 orU44ZeqdJJpXQEaIhDLMraQONP+BSUxGRcoowAhllBJM0HG8+yVFHzmnpgcaXDYQmdr uSKsLVqOM3VtmoC8HC6h+IYjORj70DSqyzKDA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=iEk7wEYK7ja6om3jvQXgtn/5cqBJcGo6MFT/Aba3dyipNI+V8Qms4IaX/HBGOfF6gG esf9LkJmUilfpLMbho7tAQ3M1nzip/5ALsBnsXb6u+k1pG2wzII9C+IS5qAml7gZkzow KpvTRRMxdKLuyPc5ExpmimDhycdY0kyjYw2oA= Received: by 10.216.86.212 with SMTP id w62mr5449348wee.131.1271606618102; Sun, 18 Apr 2010 09:03:38 -0700 (PDT) Received: from me.localdomain (85.64.35.106.dynamic.barak-online.net [85.64.35.106]) by mx.google.com with ESMTPS id z3sm40496431wbs.22.2010.04.18.09.03.37 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 18 Apr 2010 09:03:37 -0700 (PDT) Received: by me.localdomain (Postfix, from userid 1000) id 0E73511DF6; Sun, 18 Apr 2010 19:03:57 +0300 (IDT) Date: Sun, 18 Apr 2010 19:03:57 +0300 From: Sasha Khapyorsky To: Ira Weiny Cc: "linux-rdma@vger.kernel.org" , Hal Rosenstock Subject: [PATCH] libibnetdisc: remove not needed process_smp_queue() call Message-ID: <20100418160357.GK11943@me> References: <20100218124933.c018a23d.weiny2@llnl.gov> <20100413163836.GM10830@me> <20100413133826.00a8afc5.weiny2@llnl.gov> <20100413134446.72eb336a.weiny2@llnl.gov> <20100414102335.GT10830@me> <0EEE4F40-F1DD-46A6-B756-3C46DA06B403@llnl.gov> <20100416120505.GB11943@me> <20100418154950.GI11943@me> <20100418155636.GJ11943@me> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20100418155636.GJ11943@me> User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Sun, 18 Apr 2010 16:03:45 +0000 (UTC) diff --git a/infiniband-diags/libibnetdisc/src/query_smp.c b/infiniband-diags/libibnetdisc/src/query_smp.c index 0f33130..d38c2ef 100644 --- a/infiniband-diags/libibnetdisc/src/query_smp.c +++ b/infiniband-diags/libibnetdisc/src/query_smp.c @@ -231,12 +231,9 @@ void smp_engine_destroy(smp_engine_t * engine) int process_mads(smp_engine_t * engine) { int rc = 0; - while (engine->num_smps_outstanding > 0) { - if ((rc = process_smp_queue(engine)) != 0) - return rc; + while (engine->num_smps_outstanding > 0) while (!cl_is_qmap_empty(&engine->smps_on_wire)) if ((rc = process_one_recv(engine)) != 0) return rc; - } return 0; }