Lines Matching defs:plug
641 * The rbio is added to the lock owner's plug list, or merged into
642 * an rbio already on the plug list. When the lock owner unlocks,
709 * No merging, put us on the tail of the plug list, our rbio
732 * called as rmw or parity rebuild is completed. If the plug list has more
768 * we use the plug list to hold all the rbios
1556 * rbios on the plug list are sorted for easier merging.
1577 struct btrfs_plug_cb *plug = container_of(cb, struct btrfs_plug_cb, cb);
1581 list_sort(NULL, &plug->rbio_list, plug_cmp);
1583 while (!list_empty(&plug->rbio_list)) {
1584 cur = list_entry(plug->rbio_list.next,
1605 kfree(plug);
1642 struct btrfs_plug_cb *plug = NULL;
1655 * Don't plug on full rbios, just get them out the door
1659 cb = blk_check_plugged(raid_unplug, fs_info, sizeof(*plug));
1661 plug = container_of(cb, struct btrfs_plug_cb, cb);
1662 if (!plug->info) {
1663 plug->info = fs_info;
1664 INIT_LIST_HEAD(&plug->rbio_list);
1666 list_add_tail(&rbio->plug_list, &plug->rbio_list);
1672 * Either we don't have any existing plug, or we're doing a full stripe,