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)
commit622c202c4a4697636334761d7ca295ebd35074e4
tree16e3c5e172bcd85b95ca30eeadd168f7e3ab5ef0
parente0b09ac55d51bb9bf6a4a320bf4029e40bdabd6c
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