[PATCH] target/user: random data ring allocation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Linux SCSI]     [Kernel Newbies]     [Linux SCSI Target Infrastructure]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Device Mapper]

  Powered by Linux