target/user: Introduce data_bitmap, replace data_length/data_head/data_tail
authorSheng Yang <sheng@yasker.org>
Fri, 26 Feb 2016 22:59:57 +0000 (14:59 -0800)
committerNicholas Bellinger <nab@linux-iscsi.org>
Fri, 11 Mar 2016 05:49:02 +0000 (21:49 -0800)
commit26418649eead52619d8dd6cbc6760a1b144dbcd2
tree89baa8edf0b0f25f1a2c19a113ce064848e1e72b
parent0c28481ffb4683ef21c6664d15dbd5ae5a6cd027
target/user: Introduce data_bitmap, replace data_length/data_head/data_tail

The data_bitmap was introduced to support asynchornization accessing of
data area.

We divide mailbox data area into blocks, and use data_bitmap to track the
usage of data area. All the new command's data would start with a new block,
and may left unusable space after it end. But it's easy to track using
data_bitmap.

Now we can allocate data area for asynchronization accessing from userspace,
since we can track the allocation using data_bitmap. The userspace part would
be the same as Maxim's previous asynchronized implementation.

Signed-off-by: Sheng Yang <sheng@yasker.org>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/target_core_user.c
This page took 0.027593 seconds and 5 git commands to generate.