From: Anand Khoje <anand.a.khoje@oracle.com>
To: Jason Gunthorpe <jgg@ziepe.ca>
Cc: linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org,
dledford@redhat.com, haakon.bugge@oracle.com, leon@kernel.org
Subject: Re: [PATCH v7 for-next 0/3] IB/core: Obtaining subnet_prefix from cache in
Date: Fri, 9 Jul 2021 20:16:42 +0530 [thread overview]
Message-ID: <8f4d395b-317d-ec09-9d4a-4e88e8e7a245@oracle.com> (raw)
In-Reply-To: <20210709132104.GA1582827@ziepe.ca>
On 7/9/2021 6:51 PM, Jason Gunthorpe wrote:
> On Tue, Jul 06, 2021 at 12:55:48PM +0530, Anand Khoje wrote:
>> On 6/30/2021 3:16 PM, Anand Khoje wrote:
>>> This v7 of patch series is used to read the port_attribute subnet_prefix
>>> from a valid cache entry instead of having to call
>>> device->ops.query_gid() for Infiniband link-layer devices in
>>> __ib_query_port().
>>>
>>> In the event of a cache update, the value for subnet_prefix gets read
>>> using device->ops.query_gid() in config_non_roce_gid_cache().
>>>
>>> Anand Khoje (3):
>>> IB/core: Updating cache for subnet_prefix in
>>> config_non_roce_gid_cache()
>>> IB/core: Shifting initialization of device->cache_lock.
>>> IB/core: Read subnet_prefix in ib_query_port via cache.
>>> v1 -> v2:
>>> - Split the v1 patch in 3 patches as per Leon's suggestion.
>>>
>>> v2 -> v3:
>>> - Added changes as per Mark Zhang's suggestion of clearing
>>> flags in git_table_cleanup_one().
>>> v3 -> v4:
>>> - Removed the enum ib_port_data_flags and 8 byte flags from
>>> struct ib_port_data, and the set_bit()/clear_bit() API
>>> used to update this flag as that was not necessary.
>>> Done to keep the code simple.
>>> - Added code to read subnet_prefix from updated GID cache in the
>>> event of cache update. Prior to this change, ib_cache_update
>>> was reading the value for subnet_prefix via ib_query_port(),
>>> due to this patch, we ended up reading a stale cached value of
>>> subnet_prefix.
>>> v4 -> v5:
>>> - Removed the code to reset cache_is_initialised bit from cleanup
>>> as per Leon's suggestion.
>>> - Removed ib_cache_is_initialised() function.
>>>
>>> v5 -> v6:
>>> - Added changes as per Jason's suggestion of updating subnet_prefix
>>> in config_non_roce_gid_cache() and removing the flag
>>> cache_is_initialized in __ib_query_port().
>>>
>>> v6 -> v7:
>>> - Reordering the initialization of cache_lock, as the previous
>>> version caused an access to uninitialized cache_lock.
>>>
>>> drivers/infiniband/core/cache.c | 10 +++++-----
>>> drivers/infiniband/core/device.c | 10 ++++------
>>> 2 files changed, 9 insertions(+), 11 deletions(-)
>>>
>>
>> Hi,
>>
>> This is just a reminder note requesting review for this patch-set.
>
> You'll probably have to resend it after the merge window closed on
> Monday, rebased on the new rc1
>
> Jason
>
Hi Jason,
Thanks for the response. Ok, I will rebase and resend this patchset.
Thx, Anand
prev parent reply other threads:[~2021-07-09 14:47 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-06-30 9:46 Anand Khoje
2021-06-30 9:46 ` [PATCH v7 for-next 1/3] IB/core: Updating cache for subnet_prefix in config_non_roce_gid_cache() Anand Khoje
2021-06-30 9:46 ` [PATCH v7 for-next 2/3] IB/core: Shifting initialization of device->cache_lock Anand Khoje
2021-06-30 9:46 ` [PATCH v7 for-next 3/3] IB/core: Read subnet_prefix in ib_query_port via cache Anand Khoje
2021-07-06 7:25 ` [PATCH v7 for-next 0/3] IB/core: Obtaining subnet_prefix from cache in Anand Khoje
2021-07-09 13:21 ` Jason Gunthorpe
2021-07-09 14:46 ` Anand Khoje [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=8f4d395b-317d-ec09-9d4a-4e88e8e7a245@oracle.com \
--to=anand.a.khoje@oracle.com \
--cc=dledford@redhat.com \
--cc=haakon.bugge@oracle.com \
--cc=jgg@ziepe.ca \
--cc=leon@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rdma@vger.kernel.org \
/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
all inboxes | Powered by JetHome®