Lines Matching refs:plug
1672 static void run_plug(struct btrfs_plug_cb *plug) in run_plug() argument
1682 list_sort(NULL, &plug->rbio_list, plug_cmp); in run_plug()
1683 while (!list_empty(&plug->rbio_list)) { in run_plug()
1684 cur = list_entry(plug->rbio_list.next, in run_plug()
1710 kfree(plug); in run_plug()
1719 struct btrfs_plug_cb *plug; in unplug_work() local
1720 plug = container_of(work, struct btrfs_plug_cb, work); in unplug_work()
1721 run_plug(plug); in unplug_work()
1726 struct btrfs_plug_cb *plug; in btrfs_raid_unplug() local
1727 plug = container_of(cb, struct btrfs_plug_cb, cb); in btrfs_raid_unplug()
1730 btrfs_init_work(&plug->work, btrfs_rmw_helper, in btrfs_raid_unplug()
1732 btrfs_queue_work(plug->info->rmw_workers, in btrfs_raid_unplug()
1733 &plug->work); in btrfs_raid_unplug()
1736 run_plug(plug); in btrfs_raid_unplug()
1746 struct btrfs_plug_cb *plug = NULL; in raid56_parity_write() local
1773 cb = blk_check_plugged(btrfs_raid_unplug, fs_info, sizeof(*plug)); in raid56_parity_write()
1775 plug = container_of(cb, struct btrfs_plug_cb, cb); in raid56_parity_write()
1776 if (!plug->info) { in raid56_parity_write()
1777 plug->info = fs_info; in raid56_parity_write()
1778 INIT_LIST_HEAD(&plug->rbio_list); in raid56_parity_write()
1780 list_add_tail(&rbio->plug_list, &plug->rbio_list); in raid56_parity_write()