File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -182,13 +182,6 @@ int idxd_submit_desc(struct idxd_wq *wq, struct idxd_desc *desc)
182
182
183
183
portal = idxd_wq_portal_addr (wq );
184
184
185
- /*
186
- * The wmb() flushes writes to coherent DMA data before
187
- * possibly triggering a DMA read. The wmb() is necessary
188
- * even on UP because the recipient is a device.
189
- */
190
- wmb ();
191
-
192
185
/*
193
186
* Pending the descriptor to the lockless list for the irq_entry
194
187
* that we designated the descriptor to.
@@ -199,6 +192,13 @@ int idxd_submit_desc(struct idxd_wq *wq, struct idxd_desc *desc)
199
192
llist_add (& desc -> llnode , & ie -> pending_llist );
200
193
}
201
194
195
+ /*
196
+ * The wmb() flushes writes to coherent DMA data before
197
+ * possibly triggering a DMA read. The wmb() is necessary
198
+ * even on UP because the recipient is a device.
199
+ */
200
+ wmb ();
201
+
202
202
if (wq_dedicated (wq )) {
203
203
iosubmit_cmds512 (portal , desc -> hw , 1 );
204
204
} else {
You can’t perform that action at this time.
0 commit comments