commit | 67f055c798c72c49ee0c844eae0cd6e9c83b1b16 | [log] [tgz] |
---|---|---|
author | Christoph Hellwig <hch@lst.de> | Tue Nov 01 07:40:06 2016 -0600 |
committer | Jens Axboe <axboe@fb.com> | Tue Nov 01 09:43:26 2016 -0600 |
tree | 20786d4de35a1832debc631f0a6586e8c38ce7eb | |
parent | 83b5df67c50995ed93b2b7adac3f002ad8bb6069 [diff] [blame] |
btrfs: use op_is_sync to check for synchronous requests Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Jens Axboe <axboe@fb.com>
diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c index 3a57f99..c8454a8 100644 --- a/fs/btrfs/disk-io.c +++ b/fs/btrfs/disk-io.c
@@ -930,7 +930,7 @@ atomic_inc(&fs_info->nr_async_submits); - if (bio->bi_opf & REQ_SYNC) + if (op_is_sync(bio->bi_opf)) btrfs_set_work_high_priority(&async->work); btrfs_queue_work(fs_info->workers, &async->work);