Thread (39 messages) 39 messages, 5 authors, 2021-02-10

Re: [PATCH 11/13] target: replace work per cmd in completion path

From: Bodo Stroesser <bostroesser@gmail.com>
Date: 2021-02-09 17:02:17
Also in: target-devel

On 09.02.21 13:38, Mike Christie wrote:
  
+void target_queued_compl_work(struct work_struct *work)
+{
+	struct se_cmd_queue *cq = container_of(work, struct se_cmd_queue,
+					       work);
+	struct se_cmd *se_cmd, *next_cmd;
+	struct llist_node *cmd_list;
+
+	cmd_list = llist_del_all(&cq->cmd_list);
Probably nit-picking: I'd like to reverse the list before processing like you did during submission.
+	llist_for_each_entry_safe(se_cmd, next_cmd, cmd_list, se_cmd_list)
+		target_complete_cmd_work(se_cmd);
+}
+
  
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help