From: Dan Carpenter <dan.carpenter@oracle.com>
To: ira.weiny@intel.com
Cc: devel@driverdev.osuosl.org, gregkh@linuxfoundation.org,
dledford@redhat.com, Mitko Haralanov <mitko.haralanov@intel.com>,
linux-rdma@vger.kernel.org
Subject: Re: [PATCH 13/14] staging/rdma/hfi1: Add TID entry program function body
Date: Thu, 17 Dec 2015 15:06:45 +0300 [thread overview]
Message-ID: <20151217120645.GJ5284@mwanda> (raw)
In-Reply-To: <1450335624-12134-14-git-send-email-ira.weiny@intel.com>
On Thu, Dec 17, 2015 at 02:00:23AM -0500, ira.weiny@intel.com wrote:
> + mutex_lock(&uctxt->exp_lock);
> + /*
> + * The first step is to program the RcvArray entries which are complete
> + * groups.
> + */
> + while (ngroups && uctxt->tid_group_list.count) {
> + struct tid_group *grp =
> + tid_group_pop(&uctxt->tid_group_list);
> +
> + ret = program_rcvarray(fp, vaddr, grp, pagesets,
> + pageidx, dd->rcv_entries.group_size,
> + pages, tidlist, &tididx, &mapped);
> + /*
> + * If there was a failure to program the RcvArray
> + * entries for the entire group, reset the grp fields
> + * and add the grp back to the free group list.
> + */
> + if (ret <= 0) {
> + tid_group_add_tail(grp, &uctxt->tid_group_list);
> + hfi1_cdbg(TID,
> + "Failed to program RcvArray group %d", ret);
> + goto unlock;
We print a failure message but we still return success when ret == 0.
> + }
regards,
dan carpenter
next prev parent reply other threads:[~2015-12-17 12:06 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-17 7:00 [PATCH 00/14] Implement Expected Receive TID Caching ira.weiny-ral2JQCrhuEAvxtiuMwx3w
[not found] ` <1450335624-12134-1-git-send-email-ira.weiny-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
2015-12-17 7:00 ` [PATCH 01/14] staging/rdma/hfi1: Add function stubs for TID caching ira.weiny-ral2JQCrhuEAvxtiuMwx3w
2015-12-17 7:00 ` [PATCH 02/14] uapi/rdma/hfi/hfi1_user.h: Correct comment for capability bit ira.weiny-ral2JQCrhuEAvxtiuMwx3w
2015-12-17 7:00 ` [PATCH 03/14] uapi/rdma/hfi/hfi1_user.h: Convert definitions to use BIT() macro ira.weiny-ral2JQCrhuEAvxtiuMwx3w
2015-12-17 7:00 ` [PATCH 04/14] uapi/rdma/hfi/hfi1_user.h: Add command and event for TID caching ira.weiny-ral2JQCrhuEAvxtiuMwx3w
2015-12-17 7:00 ` [PATCH 05/14] staging/rdma/hfi1: Add definitions needed for TID caching support ira.weiny-ral2JQCrhuEAvxtiuMwx3w
2015-12-17 7:00 ` [PATCH 06/14] staging/rdma/hfi1: Remove un-needed variable ira.weiny-ral2JQCrhuEAvxtiuMwx3w
2015-12-17 7:00 ` [PATCH 07/14] staging/rdma/hfi1: Add definitions and support functions for TID groups ira.weiny-ral2JQCrhuEAvxtiuMwx3w
2015-12-17 7:00 ` [PATCH 08/14] staging/rdma/hfi1: Start adding building blocks for TID caching ira.weiny-ral2JQCrhuEAvxtiuMwx3w
[not found] ` <1450335624-12134-9-git-send-email-ira.weiny-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
2015-12-17 11:23 ` Dan Carpenter
2015-12-17 21:25 ` ira.weiny
2015-12-17 11:59 ` Dan Carpenter
2015-12-17 20:56 ` ira.weiny
2015-12-17 7:00 ` [PATCH 09/14] staging/rdma/hfi1: Convert lock to mutex ira.weiny-ral2JQCrhuEAvxtiuMwx3w
2015-12-17 7:00 ` [PATCH 10/14] staging/rdma/hfi1: Add Expected receive init and free functions ira.weiny-ral2JQCrhuEAvxtiuMwx3w
2015-12-17 7:00 ` [PATCH 11/14] staging/rdma/hfi1: Add MMU notifier callback function ira.weiny-ral2JQCrhuEAvxtiuMwx3w
2015-12-17 7:00 ` [PATCH 12/14] staging/rdma/hfi1: Add TID free/clear function bodies ira.weiny-ral2JQCrhuEAvxtiuMwx3w
2015-12-17 7:00 ` [PATCH 13/14] staging/rdma/hfi1: Add TID entry program function body ira.weiny-ral2JQCrhuEAvxtiuMwx3w
2015-12-17 12:06 ` Dan Carpenter [this message]
2015-12-17 21:24 ` ira.weiny
2015-12-17 7:00 ` [PATCH 14/14] staging/rdma/hfi1: Enable TID caching feature ira.weiny-ral2JQCrhuEAvxtiuMwx3w
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=20151217120645.GJ5284@mwanda \
--to=dan.carpenter@oracle.com \
--cc=devel@driverdev.osuosl.org \
--cc=dledford@redhat.com \
--cc=gregkh@linuxfoundation.org \
--cc=ira.weiny@intel.com \
--cc=linux-rdma@vger.kernel.org \
--cc=mitko.haralanov@intel.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