Skip to content

tcmu: ring buffer fixes

Mike Christie target-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest17 patches 8 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/17target: return SAM_STAT_TASK_SET_FULL for TCM_OUT_OF_RESOURCESdrivers/target/target_core_transport.c+9 -70 replies
2/17tcmu: fix double se_cmd completiondrivers/target/target_core_user.c+31 -230 replies
3/17tcmu: merge common block release codedrivers/target/target_core_user.c+8 -160 replies
4/17tcmu: move expired command completion to unmap threaddrivers/target/target_core_user.c+51 -110 replies
5/17tcmu: remove commands_lockdrivers/target/target_core_user.c+3 -100 replies
6/17tcmu: split unmap_thread_fndrivers/target/target_core_user.c+81 -680 replies
7/17tcmu: fix dev root_udev_waiter_mutex errorsdrivers/target/target_core_user.c+43 -291 reply
8/17tcmu: drop is_in_waiter_listdrivers/target/target_core_user.c+3 -90 replies
9/17tcmu: release blocks for partially setup cmdsdrivers/target/target_core_user.c+7 -00 replies
10/17tcmu: take blocks from devs waiting on blocksdrivers/target/target_core_user.c+28 -10 replies
11/17tcmu: don't block submitting context for block waitsdrivers/target/target_core_user.c+212 -920 replies
12/17tcmu: fix free block calculationdrivers/target/target_core_user.c+4 -30 replies
13/17tcmu: fix tcmu_irqcontrol and unmap racedrivers/target/target_core_user.c+12 -600 replies
14/17tcmu: run the unmap thread/wq if waiters.drivers/target/target_core_user.c+32 -150 replies
15/17tcmu: simplify scatter_data_area error handlingdrivers/target/target_core_user.c+7 -240 replies
16/17tcmu: make ring buffer timer configurabledrivers/target/target_core_user.c+68 -181 reply
17/17tcmu: allow max block and global max blocks to be settabledrivers/target/target_core_user.c+128 -256 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 00/17] tcmu: ring buffer fixes

Nick, the following patches were made over the tcmu patches that have been submitted to the list and I have fixed up and/or reviewed. I have made a branch here:

https://github.com/mikechristie/target-pending/commits/for-nick-next

built over your for-next branch.

The first patch in the set just fixes up the SAM_STAT_TASK_SET_FULL handling in transport_generic_request_failure so it does not get changed to a LUN COMM failure. The rest of the patches fix several bugs in the tcmu ring buffer code include hangs due to incorrect locking, threading and IO accounting. It also adds 2 features that allow you to configure the ring buffer size and how long we wait for memory.