@@ -232,9 +232,8 @@ struct rxrpc_call *rxrpc_new_client_call(struct rxrpc_sock *rx,
232232 return call ;
233233 }
234234
235- trace_rxrpc_call (call , rxrpc_call_new_client ,
236- atomic_read (& call -> usage ), 0 ,
237- here , (const void * )user_call_ID );
235+ trace_rxrpc_call (call , 0 , atomic_read (& call -> usage ), here ,
236+ (const void * )user_call_ID );
238237
239238 /* Publish the call, even though it is incompletely set up as yet */
240239 call -> user_call_ID = user_call_ID ;
@@ -325,7 +324,7 @@ struct rxrpc_call *rxrpc_incoming_call(struct rxrpc_sock *rx,
325324 return ERR_PTR (- EBUSY );
326325
327326 trace_rxrpc_call (candidate , rxrpc_call_new_service ,
328- atomic_read (& candidate -> usage ), 0 , here , NULL );
327+ atomic_read (& candidate -> usage ), here , NULL );
329328
330329 chan = sp -> hdr .cid & RXRPC_CHANNELMASK ;
331330 candidate -> conn = conn ;
@@ -446,11 +445,10 @@ bool rxrpc_queue_call(struct rxrpc_call *call)
446445{
447446 const void * here = __builtin_return_address (0 );
448447 int n = __atomic_add_unless (& call -> usage , 1 , 0 );
449- int m = atomic_read (& call -> skb_count );
450448 if (n == 0 )
451449 return false;
452450 if (rxrpc_queue_work (& call -> processor ))
453- trace_rxrpc_call (call , rxrpc_call_queued , n + 1 , m , here , NULL );
451+ trace_rxrpc_call (call , rxrpc_call_queued , n + 1 , here , NULL );
454452 else
455453 rxrpc_put_call (call , rxrpc_call_put_noqueue );
456454 return true;
@@ -463,10 +461,9 @@ bool __rxrpc_queue_call(struct rxrpc_call *call)
463461{
464462 const void * here = __builtin_return_address (0 );
465463 int n = atomic_read (& call -> usage );
466- int m = atomic_read (& call -> skb_count );
467464 ASSERTCMP (n , >=, 1 );
468465 if (rxrpc_queue_work (& call -> processor ))
469- trace_rxrpc_call (call , rxrpc_call_queued_ref , n , m , here , NULL );
466+ trace_rxrpc_call (call , rxrpc_call_queued_ref , n , here , NULL );
470467 else
471468 rxrpc_put_call (call , rxrpc_call_put_noqueue );
472469 return true;
@@ -480,9 +477,8 @@ void rxrpc_see_call(struct rxrpc_call *call)
480477 const void * here = __builtin_return_address (0 );
481478 if (call ) {
482479 int n = atomic_read (& call -> usage );
483- int m = atomic_read (& call -> skb_count );
484480
485- trace_rxrpc_call (call , rxrpc_call_seen , n , m , here , NULL );
481+ trace_rxrpc_call (call , rxrpc_call_seen , n , here , NULL );
486482 }
487483}
488484
@@ -493,9 +489,8 @@ void rxrpc_get_call(struct rxrpc_call *call, enum rxrpc_call_trace op)
493489{
494490 const void * here = __builtin_return_address (0 );
495491 int n = atomic_inc_return (& call -> usage );
496- int m = atomic_read (& call -> skb_count );
497492
498- trace_rxrpc_call (call , op , n , m , here , NULL );
493+ trace_rxrpc_call (call , op , n , here , NULL );
499494}
500495
501496/*
@@ -505,9 +500,8 @@ void rxrpc_get_call_for_skb(struct rxrpc_call *call, struct sk_buff *skb)
505500{
506501 const void * here = __builtin_return_address (0 );
507502 int n = atomic_inc_return (& call -> usage );
508- int m = atomic_inc_return (& call -> skb_count );
509503
510- trace_rxrpc_call (call , rxrpc_call_got_skb , n , m , here , skb );
504+ trace_rxrpc_call (call , rxrpc_call_got_skb , n , here , skb );
511505}
512506
513507/*
@@ -642,17 +636,15 @@ void rxrpc_release_calls_on_socket(struct rxrpc_sock *rx)
642636void rxrpc_put_call (struct rxrpc_call * call , enum rxrpc_call_trace op )
643637{
644638 const void * here = __builtin_return_address (0 );
645- int n , m ;
639+ int n ;
646640
647641 ASSERT (call != NULL );
648642
649643 n = atomic_dec_return (& call -> usage );
650- m = atomic_read (& call -> skb_count );
651- trace_rxrpc_call (call , op , n , m , here , NULL );
644+ trace_rxrpc_call (call , op , n , here , NULL );
652645 ASSERTCMP (n , >=, 0 );
653646 if (n == 0 ) {
654647 _debug ("call %d dead" , call -> debug_id );
655- WARN_ON (m != 0 );
656648 rxrpc_cleanup_call (call );
657649 }
658650}
@@ -663,15 +655,13 @@ void rxrpc_put_call(struct rxrpc_call *call, enum rxrpc_call_trace op)
663655void rxrpc_put_call_for_skb (struct rxrpc_call * call , struct sk_buff * skb )
664656{
665657 const void * here = __builtin_return_address (0 );
666- int n , m ;
658+ int n ;
667659
668660 n = atomic_dec_return (& call -> usage );
669- m = atomic_dec_return (& call -> skb_count );
670- trace_rxrpc_call (call , rxrpc_call_put_skb , n , m , here , skb );
661+ trace_rxrpc_call (call , rxrpc_call_put_skb , n , here , skb );
671662 ASSERTCMP (n , >=, 0 );
672663 if (n == 0 ) {
673664 _debug ("call %d dead" , call -> debug_id );
674- WARN_ON (m != 0 );
675665 rxrpc_cleanup_call (call );
676666 }
677667}
0 commit comments