Lines Matching refs:plug
1687 static void run_plug(struct btrfs_plug_cb *plug) in run_plug() argument
1697 list_sort(NULL, &plug->rbio_list, plug_cmp); in run_plug()
1698 while (!list_empty(&plug->rbio_list)) { in run_plug()
1699 cur = list_entry(plug->rbio_list.next, in run_plug()
1725 kfree(plug); in run_plug()
1734 struct btrfs_plug_cb *plug; in unplug_work() local
1735 plug = container_of(work, struct btrfs_plug_cb, work); in unplug_work()
1736 run_plug(plug); in unplug_work()
1741 struct btrfs_plug_cb *plug; in btrfs_raid_unplug() local
1742 plug = container_of(cb, struct btrfs_plug_cb, cb); in btrfs_raid_unplug()
1745 btrfs_init_work(&plug->work, unplug_work, NULL, NULL); in btrfs_raid_unplug()
1746 btrfs_queue_work(plug->info->rmw_workers, in btrfs_raid_unplug()
1747 &plug->work); in btrfs_raid_unplug()
1750 run_plug(plug); in btrfs_raid_unplug()
1787 struct btrfs_plug_cb *plug = NULL; in raid56_parity_write() local
1813 cb = blk_check_plugged(btrfs_raid_unplug, fs_info, sizeof(*plug)); in raid56_parity_write()
1815 plug = container_of(cb, struct btrfs_plug_cb, cb); in raid56_parity_write()
1816 if (!plug->info) { in raid56_parity_write()
1817 plug->info = fs_info; in raid56_parity_write()
1818 INIT_LIST_HEAD(&plug->rbio_list); in raid56_parity_write()
1820 list_add_tail(&rbio->plug_list, &plug->rbio_list); in raid56_parity_write()