]> git.baikalelectronics.ru Git - kernel.git/commit
IB/hfi1: Fix TID caching actions
authorDean Luick <dean.luick@intel.com>
Thu, 28 Jul 2016 19:21:21 +0000 (15:21 -0400)
committerDoug Ledford <dledford@redhat.com>
Wed, 3 Aug 2016 02:46:21 +0000 (22:46 -0400)
commitb8b0abaaf5743541356e954a23da6d713b4c3915
tree16e3c5e172bcd85b95ca30eeadd168f7e3ab5ef0
parent6ff69695ffe3e0cff2130f0b5a2e2a6c88f5b98c
IB/hfi1: Fix TID caching actions

Per file descriptor TID caching actions depend on a global that can
change midway through the lifetime of that file descriptor.

Make the use of caching consistent for the life of the file descriptor
by using the presence of the cache handler to decide when to use the cache
functions.

Reviewed-by: Ira Weiny <ira.weiny@intel.com>
Signed-off-by: Dean Luick <dean.luick@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/hfi1/file_ops.c
drivers/infiniband/hw/hfi1/user_exp_rcv.c