···155 unsigned long limit;156 unsigned long last_waited = 0;157 int force_reg = 0;000000000158159 bdi = blk_get_backing_dev_info(device->bdev);160 fs_info = device->dev_root->fs_info;···303 spin_unlock(&device->io_lock);304305done:0306 return 0;307}308
···155 unsigned long limit;156 unsigned long last_waited = 0;157 int force_reg = 0;158+ struct blk_plug plug;159+160+ /*161+ * this function runs all the bios we've collected for162+ * a particular device. We don't want to wander off to163+ * another device without first sending all of these down.164+ * So, setup a plug here and finish it off before we return165+ */166+ blk_start_plug(&plug);167168 bdi = blk_get_backing_dev_info(device->bdev);169 fs_info = device->dev_root->fs_info;···294 spin_unlock(&device->io_lock);295296done:297+ blk_finish_plug(&plug);298 return 0;299}300