elevator: Fix a race in elevator switching and md device initialization
[linux-3.10.git] / block / blk-merge.c
index 936a110..5f24482 100644 (file)
@@ -143,7 +143,7 @@ new_segment:
                         * termination bit to avoid doing a full
                         * sg_init_table() in drivers for each command.
                         */
-                       (*sg)->page_link &= ~0x02;
+                       sg_unmark_end(*sg);
                        *sg = sg_next(*sg);
                }