On Mon, Jul 12, 2021 at 05:56:22PM +0530, Anand Khoje wrote: > This v8 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(). > > It also re-orders the initialization of lock cache_lock of struct ib_device > such that the lock is initialized before its first use in __ib_query_port() > during device initialization. > > 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. > > drivers/infiniband/core/cache.c | 10 +++++----- > drivers/infiniband/core/device.c | 10 ++++------ > 2 files changed, 9 insertions(+), 11 deletions(-) Applied to for-next, thanks Jason