[PATCH 1/3] block: avoid unnecessary plug should_sort test.

2012-08-10 Thread Jianpeng Ma
If request_count >= BLK_MAX_REQUEST_COUNT,then it will exec blk_flush_plug_list which plug all request.So no need to do plug->should_sort test. Signed-off-by: Jianpeng Ma --- block/blk-core.c |9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/block/blk-core.c

[PATCH 1/3] block: avoid unnecessary plug should_sort test.

2012-08-10 Thread Jianpeng Ma
If request_count = BLK_MAX_REQUEST_COUNT,then it will exec blk_flush_plug_list which plug all request.So no need to do plug-should_sort test. Signed-off-by: Jianpeng Ma majianp...@gmail.com --- block/blk-core.c |9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git