qemu with hax to log dma reads & writes jcs.org/2018/11/12/vfio

file-posix: Remove paio_submit_co()

The function is not used any more, remove it.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>

-34
-34
block/file-posix.c
··· 1824 1824 return thread_pool_submit_co(pool, func, arg); 1825 1825 } 1826 1826 1827 - static int paio_submit_co_full(BlockDriverState *bs, int fd, 1828 - int64_t offset, int fd2, int64_t offset2, 1829 - QEMUIOVector *qiov, 1830 - int bytes, int type) 1831 - { 1832 - RawPosixAIOData *acb = g_new(RawPosixAIOData, 1); 1833 - 1834 - acb->bs = bs; 1835 - acb->aio_type = type; 1836 - acb->aio_fildes = fd; 1837 - 1838 - acb->aio_nbytes = bytes; 1839 - acb->aio_offset = offset; 1840 - 1841 - if (qiov) { 1842 - acb->io.iov = qiov->iov; 1843 - acb->io.niov = qiov->niov; 1844 - assert(qiov->size == bytes); 1845 - } else { 1846 - acb->copy_range.aio_fd2 = fd2; 1847 - acb->copy_range.aio_offset2 = offset2; 1848 - } 1849 - 1850 - trace_file_paio_submit_co(offset, bytes, type); 1851 - return raw_thread_pool_submit(bs, aio_worker, acb); 1852 - } 1853 - 1854 - static inline int paio_submit_co(BlockDriverState *bs, int fd, 1855 - int64_t offset, QEMUIOVector *qiov, 1856 - int bytes, int type) 1857 - { 1858 - return paio_submit_co_full(bs, fd, offset, -1, 0, qiov, bytes, type); 1859 - } 1860 - 1861 1827 static int coroutine_fn raw_co_prw(BlockDriverState *bs, uint64_t offset, 1862 1828 uint64_t bytes, QEMUIOVector *qiov, int type) 1863 1829 {