]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - lib/scatterlist.c
lib/scatterlist: do not re-write gfp_flags in __sg_alloc_table()
[karo-tx-linux.git] / lib / scatterlist.c
index 6096e89bee552ea79ed1ae5410f3b3ee9327cc0f..d09bdd8b40ce2eb829c448ef672bf1a65b658066 100644 (file)
@@ -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);