Lines Matching refs:plug
1650 static void run_plug(struct btrfs_plug_cb *plug) in run_plug() argument
1660 list_sort(NULL, &plug->rbio_list, plug_cmp); in run_plug()
1661 while (!list_empty(&plug->rbio_list)) { in run_plug()
1662 cur = list_entry(plug->rbio_list.next, in run_plug()
1688 kfree(plug); in run_plug()
1697 struct btrfs_plug_cb *plug; in unplug_work() local
1698 plug = container_of(work, struct btrfs_plug_cb, work); in unplug_work()
1699 run_plug(plug); in unplug_work()
1704 struct btrfs_plug_cb *plug; in btrfs_raid_unplug() local
1705 plug = container_of(cb, struct btrfs_plug_cb, cb); in btrfs_raid_unplug()
1708 btrfs_init_work(&plug->work, unplug_work, NULL, NULL); in btrfs_raid_unplug()
1709 btrfs_queue_work(plug->info->rmw_workers, in btrfs_raid_unplug()
1710 &plug->work); in btrfs_raid_unplug()
1713 run_plug(plug); in btrfs_raid_unplug()
1724 struct btrfs_plug_cb *plug = NULL; in raid56_parity_write() local
1751 cb = blk_check_plugged(btrfs_raid_unplug, fs_info, sizeof(*plug)); in raid56_parity_write()
1753 plug = container_of(cb, struct btrfs_plug_cb, cb); in raid56_parity_write()
1754 if (!plug->info) { in raid56_parity_write()
1755 plug->info = fs_info; in raid56_parity_write()
1756 INIT_LIST_HEAD(&plug->rbio_list); in raid56_parity_write()
1758 list_add_tail(&rbio->plug_list, &plug->rbio_list); in raid56_parity_write()