File tree Expand file tree Collapse file tree 1 file changed +12
-6
lines changed Expand file tree Collapse file tree 1 file changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -203,20 +203,26 @@ void afs_put_call(struct afs_call *call)
203
203
}
204
204
}
205
205
206
+ static struct afs_call * afs_get_call (struct afs_call * call ,
207
+ enum afs_call_trace why )
208
+ {
209
+ int u = atomic_inc_return (& call -> usage );
210
+
211
+ trace_afs_call (call , why , u ,
212
+ atomic_read (& call -> net -> nr_outstanding_calls ),
213
+ __builtin_return_address (0 ));
214
+ return call ;
215
+ }
216
+
206
217
/*
207
218
* Queue the call for actual work.
208
219
*/
209
220
static void afs_queue_call_work (struct afs_call * call )
210
221
{
211
222
if (call -> type -> work ) {
212
- int u = atomic_inc_return (& call -> usage );
213
-
214
- trace_afs_call (call , afs_call_trace_work , u ,
215
- atomic_read (& call -> net -> nr_outstanding_calls ),
216
- __builtin_return_address (0 ));
217
-
218
223
INIT_WORK (& call -> work , call -> type -> work );
219
224
225
+ afs_get_call (call , afs_call_trace_work );
220
226
if (!queue_work (afs_wq , & call -> work ))
221
227
afs_put_call (call );
222
228
}
You can’t perform that action at this time.
0 commit comments