File tree Expand file tree Collapse file tree 1 file changed +12
-11
lines changed Expand file tree Collapse file tree 1 file changed +12
-11
lines changed Original file line number Diff line number Diff line change @@ -684,6 +684,18 @@ static void __submit_bio_noacct_mq(struct bio *bio)
684
684
685
685
void submit_bio_noacct_nocheck (struct bio * bio )
686
686
{
687
+ blk_cgroup_bio_start (bio );
688
+ blkcg_bio_issue_init (bio );
689
+
690
+ if (!bio_flagged (bio , BIO_TRACE_COMPLETION )) {
691
+ trace_block_bio_queue (bio );
692
+ /*
693
+ * Now that enqueuing has been traced, we need to trace
694
+ * completion as well.
695
+ */
696
+ bio_set_flag (bio , BIO_TRACE_COMPLETION );
697
+ }
698
+
687
699
/*
688
700
* We only want one ->submit_bio to be active at a time, else stack
689
701
* usage with stacked devices could be a problem. Use current->bio_list
@@ -788,17 +800,6 @@ void submit_bio_noacct(struct bio *bio)
788
800
789
801
if (blk_throtl_bio (bio ))
790
802
return ;
791
-
792
- blk_cgroup_bio_start (bio );
793
- blkcg_bio_issue_init (bio );
794
-
795
- if (!bio_flagged (bio , BIO_TRACE_COMPLETION )) {
796
- trace_block_bio_queue (bio );
797
- /* Now that enqueuing has been traced, we need to trace
798
- * completion as well.
799
- */
800
- bio_set_flag (bio , BIO_TRACE_COMPLETION );
801
- }
802
803
submit_bio_noacct_nocheck (bio );
803
804
return ;
804
805
You can’t perform that action at this time.
0 commit comments