Lines Matching refs:plug
1653 static void run_plug(struct btrfs_plug_cb *plug) in run_plug() argument
1663 list_sort(NULL, &plug->rbio_list, plug_cmp); in run_plug()
1664 while (!list_empty(&plug->rbio_list)) { in run_plug()
1665 cur = list_entry(plug->rbio_list.next, in run_plug()
1691 kfree(plug); in run_plug()
1700 struct btrfs_plug_cb *plug; in unplug_work() local
1701 plug = container_of(work, struct btrfs_plug_cb, work); in unplug_work()
1702 run_plug(plug); in unplug_work()
1707 struct btrfs_plug_cb *plug; in btrfs_raid_unplug() local
1708 plug = container_of(cb, struct btrfs_plug_cb, cb); in btrfs_raid_unplug()
1711 btrfs_init_work(&plug->work, unplug_work, NULL, NULL); in btrfs_raid_unplug()
1712 btrfs_queue_work(plug->info->rmw_workers, in btrfs_raid_unplug()
1713 &plug->work); in btrfs_raid_unplug()
1716 run_plug(plug); in btrfs_raid_unplug()
1726 struct btrfs_plug_cb *plug = NULL; in raid56_parity_write() local
1753 cb = blk_check_plugged(btrfs_raid_unplug, fs_info, sizeof(*plug)); in raid56_parity_write()
1755 plug = container_of(cb, struct btrfs_plug_cb, cb); in raid56_parity_write()
1756 if (!plug->info) { in raid56_parity_write()
1757 plug->info = fs_info; in raid56_parity_write()
1758 INIT_LIST_HEAD(&plug->rbio_list); in raid56_parity_write()
1760 list_add_tail(&rbio->plug_list, &plug->rbio_list); in raid56_parity_write()