Searched refs:aio_cmd (Results 1 – 1 of 1) sorted by relevance
/linux/drivers/target/ |
H A D | target_core_file.c | 273 struct target_core_file_cmd *aio_cmd; in fd_execute_rw_aio() local 279 aio_cmd = kmalloc(struct_size(aio_cmd, bvecs, sgl_nents), GFP_KERNEL); in fd_execute_rw_aio() 280 if (!aio_cmd) in fd_execute_rw_aio() 284 bvec_set_page(&aio_cmd->bvecs[i], sg_page(sg), sg->length, in fd_execute_rw_aio() 289 iov_iter_bvec(&iter, is_write, aio_cmd->bvecs, sgl_nents, len); in fd_execute_rw_aio() 291 aio_cmd->cmd = cmd; in fd_execute_rw_aio() 292 aio_cmd->len = len; in fd_execute_rw_aio() 293 aio_cmd->iocb.ki_pos = cmd->t_task_lba * dev->dev_attrib.block_size; in fd_execute_rw_aio() 294 aio_cmd->iocb.ki_filp = file; in fd_execute_rw_aio() 295 aio_cmd->iocb.ki_complete = cmd_rw_aio_complete; in fd_execute_rw_aio() [all …]
|