File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -652,9 +652,7 @@ static int kdamond_fn(void *data)
652
652
unsigned int max_nr_accesses = 0 ;
653
653
unsigned long sz_limit = 0 ;
654
654
655
- mutex_lock (& ctx -> kdamond_lock );
656
- pr_debug ("kdamond (%d) starts\n" , ctx -> kdamond -> pid );
657
- mutex_unlock (& ctx -> kdamond_lock );
655
+ pr_debug ("kdamond (%d) starts\n" , current -> pid );
658
656
659
657
if (ctx -> primitive .init )
660
658
ctx -> primitive .init (ctx );
@@ -705,7 +703,7 @@ static int kdamond_fn(void *data)
705
703
if (ctx -> primitive .cleanup )
706
704
ctx -> primitive .cleanup (ctx );
707
705
708
- pr_debug ("kdamond (%d) finishes\n" , ctx -> kdamond -> pid );
706
+ pr_debug ("kdamond (%d) finishes\n" , current -> pid );
709
707
mutex_lock (& ctx -> kdamond_lock );
710
708
ctx -> kdamond = NULL ;
711
709
mutex_unlock (& ctx -> kdamond_lock );
You can’t perform that action at this time.
0 commit comments