···155155 unsigned long limit;156156 unsigned long last_waited = 0;157157 int force_reg = 0;158158+ struct blk_plug plug;159159+160160+ /*161161+ * this function runs all the bios we've collected for162162+ * a particular device. We don't want to wander off to163163+ * another device without first sending all of these down.164164+ * So, setup a plug here and finish it off before we return165165+ */166166+ blk_start_plug(&plug);158167159168 bdi = blk_get_backing_dev_info(device->bdev);160169 fs_info = device->dev_root->fs_info;···303294 spin_unlock(&device->io_lock);304295305296done:297297+ blk_finish_plug(&plug);306298 return 0;307299}308300