diff options
author | Alasdair G Kergon <agk@redhat.com> | 2007-07-12 12:26:19 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-07-12 18:01:08 -0400 |
commit | 79e15ae424afa0a40b1a0c4478046d6ba0b71e20 (patch) | |
tree | 88714dc72c20057bfdafacef25c2d8bf7367c843 /drivers/md/dm-bio-list.h | |
parent | 4aabab2181f20560948c2045ce1faaa9ac1507a8 (diff) |
dm: bio_list prefetch removal
Remove dubious prefetch from bio_list_for_each() macro.
Cc: Jens Axboe <jens.axboe@oracle.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/md/dm-bio-list.h')
-rw-r--r-- | drivers/md/dm-bio-list.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/md/dm-bio-list.h b/drivers/md/dm-bio-list.h index c6be88826fae..16ee3b018b3a 100644 --- a/drivers/md/dm-bio-list.h +++ b/drivers/md/dm-bio-list.h | |||
@@ -8,7 +8,6 @@ | |||
8 | #define DM_BIO_LIST_H | 8 | #define DM_BIO_LIST_H |
9 | 9 | ||
10 | #include <linux/bio.h> | 10 | #include <linux/bio.h> |
11 | #include <linux/prefetch.h> | ||
12 | 11 | ||
13 | struct bio_list { | 12 | struct bio_list { |
14 | struct bio *head; | 13 | struct bio *head; |
@@ -31,8 +30,7 @@ static inline void bio_list_init(struct bio_list *bl) | |||
31 | } | 30 | } |
32 | 31 | ||
33 | #define bio_list_for_each(bio, bl) \ | 32 | #define bio_list_for_each(bio, bl) \ |
34 | for (bio = (bl)->head; bio && ({ prefetch(bio->bi_next); 1; }); \ | 33 | for (bio = (bl)->head; bio; bio = bio->bi_next) |
35 | bio = bio->bi_next) | ||
36 | 34 | ||
37 | static inline unsigned bio_list_size(const struct bio_list *bl) | 35 | static inline unsigned bio_list_size(const struct bio_list *bl) |
38 | { | 36 | { |