Repository navigation
Commit 1e7710f
IB/core: Change completion channel to use the reworked objects schema
This patch adds the standard fd based type - completion_channel.
The completion_channel is now prefixed with ib_uobject, similarly
to the rest of the uobjects.
This requires a few changes:
(1) We define a new completion channel fd based object type.
(2) completion_event and async_event are now two different types.
This means they use different fops.
(3) We release the completion_channel exactly as we release other
idr based objects.
(4) Since ib_uobjects are already kref-ed, we only add the kref to the
async event.
A fd object requires filling out several parameters. Its op pointer
should point to uverbs_fd_ops and its size should be at least the
size if ib_uobject. We use a macro to make the type declaration
easier.
Signed-off-by: Matan Barak <matanb@mellanox.com>
Reviewed-by: Yishai Hadas <yishaih@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>1 parent cf8966b commit 1e7710f
6 files changed
Lines changed: 257 additions & 148 deletions
File tree
- drivers/infiniband/core
- include/rdma
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | 105 | | |
109 | 106 | | |
110 | 107 | | |
111 | 108 | | |
112 | 109 | | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
113 | 116 | | |
114 | 117 | | |
115 | 118 | | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
116 | 124 | | |
117 | 125 | | |
118 | 126 | | |
119 | 127 | | |
120 | 128 | | |
121 | 129 | | |
122 | 130 | | |
123 | | - | |
| 131 | + | |
124 | 132 | | |
125 | 133 | | |
126 | 134 | | |
| |||
182 | 190 | | |
183 | 191 | | |
184 | 192 | | |
185 | | - | |
186 | | - | |
187 | | - | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
188 | 197 | | |
189 | | - | |
190 | 198 | | |
191 | 199 | | |
192 | | - | |
| 200 | + | |
193 | 201 | | |
194 | 202 | | |
195 | 203 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
50 | 68 | | |
51 | 69 | | |
52 | 70 | | |
| |||
116 | 134 | | |
117 | 135 | | |
118 | 136 | | |
119 | | - | |
| 137 | + | |
120 | 138 | | |
121 | 139 | | |
122 | 140 | | |
| |||
908 | 926 | | |
909 | 927 | | |
910 | 928 | | |
911 | | - | |
912 | | - | |
| 929 | + | |
| 930 | + | |
913 | 931 | | |
914 | 932 | | |
915 | 933 | | |
916 | 934 | | |
917 | 935 | | |
918 | 936 | | |
919 | 937 | | |
920 | | - | |
921 | | - | |
922 | | - | |
923 | | - | |
| 938 | + | |
| 939 | + | |
| 940 | + | |
924 | 941 | | |
925 | | - | |
926 | | - | |
927 | | - | |
928 | | - | |
929 | | - | |
| 942 | + | |
| 943 | + | |
| 944 | + | |
| 945 | + | |
| 946 | + | |
930 | 947 | | |
931 | 948 | | |
932 | 949 | | |
933 | | - | |
934 | | - | |
| 950 | + | |
935 | 951 | | |
936 | 952 | | |
937 | 953 | | |
938 | | - | |
| 954 | + | |
939 | 955 | | |
940 | 956 | | |
941 | 957 | | |
| |||
953 | 969 | | |
954 | 970 | | |
955 | 971 | | |
956 | | - | |
| 972 | + | |
957 | 973 | | |
958 | 974 | | |
959 | 975 | | |
| |||
968 | 984 | | |
969 | 985 | | |
970 | 986 | | |
971 | | - | |
972 | | - | |
973 | | - | |
| 987 | + | |
| 988 | + | |
| 989 | + | |
| 990 | + | |
974 | 991 | | |
975 | 992 | | |
976 | 993 | | |
| |||
998 | 1015 | | |
999 | 1016 | | |
1000 | 1017 | | |
1001 | | - | |
| 1018 | + | |
1002 | 1019 | | |
1003 | 1020 | | |
1004 | 1021 | | |
| |||
0 commit comments