Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 019ceb7d authored by Shaohua Li's avatar Shaohua Li Committed by Jens Axboe
Browse files

block: add missed trace_block_plug



After flush plug list, the list has no request, so we need to add a
trace_block_plug().

Signed-off-by: default avatarShaohua Li <shaohua.li@intel.com>
Reviewed-by: default avatarNamhyung Kim <namhyung@gmail.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent a2c2a0e6
Loading
Loading
Loading
Loading
+3 −1
Original line number Original line Diff line number Diff line
@@ -1387,8 +1387,10 @@ void blk_queue_bio(struct request_queue *q, struct bio *bio)
				if (__rq->q != q)
				if (__rq->q != q)
					plug->should_sort = 1;
					plug->should_sort = 1;
			}
			}
			if (request_count >= BLK_MAX_REQUEST_COUNT)
			if (request_count >= BLK_MAX_REQUEST_COUNT) {
				blk_flush_plug_list(plug, false);
				blk_flush_plug_list(plug, false);
				trace_block_plug(q);
			}
		}
		}
		list_add_tail(&req->queuelist, &plug->list);
		list_add_tail(&req->queuelist, &plug->list);
		drive_stat_acct(req, 1);
		drive_stat_acct(req, 1);