Skip to content

Commit

Permalink
dm: bio_list prefetch removal
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Alasdair G Kergon authored and Linus Torvalds committed Jul 12, 2007
1 parent 4aabab2 commit 79e15ae
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/md/dm-bio-list.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
#define DM_BIO_LIST_H

#include <linux/bio.h>
#include <linux/prefetch.h>

struct bio_list {
struct bio *head;
Expand All @@ -31,8 +30,7 @@ static inline void bio_list_init(struct bio_list *bl)
}

#define bio_list_for_each(bio, bl) \
for (bio = (bl)->head; bio && ({ prefetch(bio->bi_next); 1; }); \
bio = bio->bi_next)
for (bio = (bl)->head; bio; bio = bio->bi_next)

static inline unsigned bio_list_size(const struct bio_list *bl)
{
Expand Down

0 comments on commit 79e15ae

Please sign in to comment.