blockjob.c (3ca1f3225727419ba573673b744edac10904276f) | blockjob.c (228ca37e12f97788e05bd0c92f89b3e5e4019607) |
---|---|
1/* 2 * QEMU System Emulator block driver 3 * 4 * Copyright (c) 2011 IBM Corp. 5 * Copyright (c) 2012 Red Hat, Inc. 6 * 7 * Permission is hereby granted, free of charge, to any person obtaining a copy 8 * of this software and associated documentation files (the "Software"), to deal --- 215 unchanged lines hidden (view full) --- 224 225 bdrv_ref(bs); 226 227 need_context_ops = bdrv_get_aio_context(bs) != job->job.aio_context; 228 229 if (need_context_ops && job->job.aio_context != qemu_get_aio_context()) { 230 aio_context_release(job->job.aio_context); 231 } | 1/* 2 * QEMU System Emulator block driver 3 * 4 * Copyright (c) 2011 IBM Corp. 5 * Copyright (c) 2012 Red Hat, Inc. 6 * 7 * Permission is hereby granted, free of charge, to any person obtaining a copy 8 * of this software and associated documentation files (the "Software"), to deal --- 215 unchanged lines hidden (view full) --- 224 225 bdrv_ref(bs); 226 227 need_context_ops = bdrv_get_aio_context(bs) != job->job.aio_context; 228 229 if (need_context_ops && job->job.aio_context != qemu_get_aio_context()) { 230 aio_context_release(job->job.aio_context); 231 } |
232 c = bdrv_root_attach_child(bs, name, &child_job, 0, 233 job->job.aio_context, perm, shared_perm, job, | 232 c = bdrv_root_attach_child(bs, name, &child_job, 0, perm, shared_perm, job, |
234 errp); 235 if (need_context_ops && job->job.aio_context != qemu_get_aio_context()) { 236 aio_context_acquire(job->job.aio_context); 237 } 238 if (c == NULL) { 239 return -EPERM; 240 } 241 --- 296 unchanged lines hidden --- | 233 errp); 234 if (need_context_ops && job->job.aio_context != qemu_get_aio_context()) { 235 aio_context_acquire(job->job.aio_context); 236 } 237 if (c == NULL) { 238 return -EPERM; 239 } 240 --- 296 unchanged lines hidden --- |