Re: [PATCH v3] rust: serdev: Mitigate race conditions

From
Miguel Ojeda <hidden>
Date
2026-09-05 18:43:42
Also in
lkml, rust-for-linux
Reply to
Markus Probst, 2026-09-05
On Sat, Sep 5, 2026 at 8:33 PM Markus Probst [off-list ref] wrote:
quoted hunk ↗ jump to hunk

+        /* receive_buf: if T::HAS_RECEIVE {
             Some(Self::receive_buf_callback)
         } else {
             None
+        }, */
+        // Bound,
quoted hunk ↗ jump to hunk
+    /*fn receive<'bound>(
         sdev: &'bound serdev::Device<Bound>,
         _this: Pin<&Self>,
         data: &[u8],
     ) -> usize {
         sdev.write(data).unwrap_or_default() as usize
-    }
+    }*/
Please don't comment code out -- it is fine to just remove it even if
it is a temporary measure. The code will still be there in Git.

Thanks!

Cheers,
Miguel
Thread (3 messages) 3 messages, 3 authors, last reply 2026-09-05
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help