VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   33 Branches   57 Tags
author: Mandeep Singh Baines <msb@chromium.org> 2012-07-30 14:43:22 -0700 committer: Linus Torvalds <torvalds@linux-foundation.org> 2012-07-30 17:25:22 -0700 commit: e04f228335bde305d2833e40382ed37fc36f9efe parent: c24aa64d169b7224f1a5bc6a4b1365da37ce861b
Commit Summary:
lib/scatterlist: do not re-write gfp_flags in __sg_alloc_table()
Diffstat:
1 file changed, 0 insertions, 8 deletions
diff --git a/lib/scatterlist.c b/lib/scatterlist.c
index 6096e89bee55..d09bdd8b40ce 100644
--- a/lib/scatterlist.c
+++ b/lib/scatterlist.c
@@ -279,14 +279,6 @@ int __sg_alloc_table(struct sg_table *table, unsigned int nents,
 		if (!left)
 			sg_mark_end(&sg[sg_size - 1]);
 
-		/*
-		 * only really needed for mempool backed sg allocations (like
-		 * SCSI), a possible improvement here would be to pass the
-		 * table pointer into the allocator and let that clear these
-		 * flags
-		 */
-		gfp_mask &= ~__GFP_WAIT;
-		gfp_mask |= __GFP_HIGH;
 		prv = sg;
 	} while (left);