]> www.infradead.org Git - users/jedix/linux-maple.git/commit
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)
committerChuck Anderson <chuck.anderson@oracle.com>
Fri, 23 Jun 2017 04:10:47 +0000 (21:10 -0700)
commit8e80651dab82506b2a34a1c711cfc79e03117d9f
treec1f83dcad7cbd14f7ee0e1ae488321ce73a6e28d
parent87f2337f82730101b4c0517e45c2bcfe027f32fd
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>
Orabug: 25395066
(cherry picked from commit 26418649eead52619d8dd6cbc6760a1b144dbcd2)
Signed-off-by: Kyle Fortin <kyle.fortin@oracle.com>
Reviewed-by: Shan Hai <shan.hai@oracle.com>
drivers/target/target_core_user.c