Lines Matching refs:plug
1665 static void run_plug(struct btrfs_plug_cb *plug) in run_plug() argument
1675 list_sort(NULL, &plug->rbio_list, plug_cmp); in run_plug()
1676 while (!list_empty(&plug->rbio_list)) { in run_plug()
1677 cur = list_entry(plug->rbio_list.next, in run_plug()
1703 kfree(plug); in run_plug()
1712 struct btrfs_plug_cb *plug; in unplug_work() local
1713 plug = container_of(work, struct btrfs_plug_cb, work); in unplug_work()
1714 run_plug(plug); in unplug_work()
1719 struct btrfs_plug_cb *plug; in btrfs_raid_unplug() local
1720 plug = container_of(cb, struct btrfs_plug_cb, cb); in btrfs_raid_unplug()
1723 btrfs_init_work(&plug->work, unplug_work, NULL, NULL); in btrfs_raid_unplug()
1724 btrfs_queue_work(plug->info->rmw_workers, in btrfs_raid_unplug()
1725 &plug->work); in btrfs_raid_unplug()
1728 run_plug(plug); in btrfs_raid_unplug()
1738 struct btrfs_plug_cb *plug = NULL; in raid56_parity_write() local
1765 cb = blk_check_plugged(btrfs_raid_unplug, fs_info, sizeof(*plug)); in raid56_parity_write()
1767 plug = container_of(cb, struct btrfs_plug_cb, cb); in raid56_parity_write()
1768 if (!plug->info) { in raid56_parity_write()
1769 plug->info = fs_info; in raid56_parity_write()
1770 INIT_LIST_HEAD(&plug->rbio_list); in raid56_parity_write()
1772 list_add_tail(&rbio->plug_list, &plug->rbio_list); in raid56_parity_write()