aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/rdma/hfi1/file_ops.c
diff options
context:
space:
mode:
authorMitko Haralanov <mitko.haralanov@intel.com>2016-02-05 11:57:48 -0500
committerDoug Ledford <dledford@redhat.com>2016-02-29 17:10:38 -0500
commit955ad36dcde4639664253c2bd39f626cd88d2acf (patch)
tree5c19ed28b55591623bbc6360bd2dfca8203bbeb9 /drivers/staging/rdma/hfi1/file_ops.c
parentuapi/hfi1_user: Correct comment for capability bit (diff)
downloadlinux-dev-955ad36dcde4639664253c2bd39f626cd88d2acf.tar.xz
linux-dev-955ad36dcde4639664253c2bd39f626cd88d2acf.zip
uapi/hfi1_user: Add command and event for TID caching
TID caching will use a new event to signal userland that cache invalidation has occurred and needs a matching command code that will be used to read the invalidated TIDs. Add the event bit and the new command to the exported header file. The command is also added to the switch() statement in file_ops.c for completeness and in preparation for its usage later. Signed-off-by: Mitko Haralanov <mitko.haralanov@intel.com> Reviewed-by: Ira Weiny <ira.weiny@intel.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/staging/rdma/hfi1/file_ops.c')
-rw-r--r--drivers/staging/rdma/hfi1/file_ops.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/staging/rdma/hfi1/file_ops.c b/drivers/staging/rdma/hfi1/file_ops.c
index d57d549052c8..c66693532be0 100644
--- a/drivers/staging/rdma/hfi1/file_ops.c
+++ b/drivers/staging/rdma/hfi1/file_ops.c
@@ -241,6 +241,7 @@ static ssize_t hfi1_file_write(struct file *fp, const char __user *data,
must_be_root = 1; /* validate user */
copy = 0;
break;
+ case HFI1_CMD_TID_INVAL_READ:
default:
ret = -EINVAL;
goto bail;