Commit 79e15ae4 authored by Alasdair G Kergon's avatar Alasdair G Kergon Committed by Linus Torvalds

dm: bio_list prefetch removal

Remove dubious prefetch from bio_list_for_each() macro.

Cc: Jens Axboe <jens.axboe@oracle.com>
Signed-off-by: default avatarAlasdair G Kergon <agk@redhat.com>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 4aabab21
......@@ -8,7 +8,6 @@
#define DM_BIO_LIST_H
#include <linux/bio.h>
#include <linux/prefetch.h>
struct bio_list {
struct bio *head;
......@@ -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)
{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment