Hello! Attached patch implements random allocator for TCMU data area. Any comments are appreciated! The only question I have is how can I handle timed-out commands (see XXX: comment in free_data_area())? There is the following comment in "struct tcmu_cmd" definition: /* Can't use se_cmd->data_length when cleaning up expired cmds, because if cmd has been completed then accessing se_cmd is off limits */ Can you clarify why is that? The patch is also available here (I track target-pending in my bitbucket repo): https://bitbucket.org/mkhon/target-pending/pull-requests/1/async-io/diff Max
Attachment:
async-io.patch
Description: Binary data