diff options
author | Jianpeng Ma <majianpeng@gmail.com> | 2013-01-11 08:46:09 -0500 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2013-01-11 08:46:09 -0500 |
commit | 422765c2638924da10ff363b5eed77924911bdc7 (patch) | |
tree | 76ae39f6f744e45ec023859c2d46fad2aeaf7714 /include/linux/blkdev.h | |
parent | 242d98f077ac0ab80920219769eb095503b93f61 (diff) |
block: Remove should_sort judgement when flush blk_plug
In commit 975927b942c932,it add blk_rq_pos to sort rq when flushing.
Although this commit was used for the situation which blk_plug handled
multi devices on the same time like md device.
I think there must be some situations like this but only single
device.
So remove the should_sort judgement.
Because the parameter should_sort is only for this purpose,it can delete
should_sort from blk_plug.
CC: Shaohua Li <shli@kernel.org>
Signed-off-by: Jianpeng Ma <majianpeng@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include/linux/blkdev.h')
-rw-r--r-- | include/linux/blkdev.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h index f94bc83011ed..dbe74279f3d6 100644 --- a/include/linux/blkdev.h +++ b/include/linux/blkdev.h | |||
@@ -974,7 +974,6 @@ struct blk_plug { | |||
974 | unsigned long magic; /* detect uninitialized use-cases */ | 974 | unsigned long magic; /* detect uninitialized use-cases */ |
975 | struct list_head list; /* requests */ | 975 | struct list_head list; /* requests */ |
976 | struct list_head cb_list; /* md requires an unplug callback */ | 976 | struct list_head cb_list; /* md requires an unplug callback */ |
977 | unsigned int should_sort; /* list to be sorted before flushing? */ | ||
978 | }; | 977 | }; |
979 | #define BLK_MAX_REQUEST_COUNT 16 | 978 | #define BLK_MAX_REQUEST_COUNT 16 |
980 | 979 | ||