[PATCH 2/2] cpukit/jffs2: Use unprotected chain calls

Sebastian Huber sebastian.huber at embedded-brains.de
Thu Sep 21 14:52:16 UTC 2023


On 20.09.23 20:35, Kinsey Moore wrote:
> Use unprotected chain calls for delayed write workqueues since these
> calls are either protected by locks or only operate on local chains and
> are never accessed from interrupt context.
> 
> Updates #4956

This change is all right, if you fix the chain operations outside the 
locks. Using the off-chain state doesn't work reliably in SMP 
configurations. You also have to ensure that a node in the local chain 
cannot be deleted (unmount). I think you should first write a test case 
which triggers the bug in the original implementation.

-- 
embedded brains GmbH
Herr Sebastian HUBER
Dornierstr. 4
82178 Puchheim
Germany
email: sebastian.huber at embedded-brains.de
phone: +49-89-18 94 741 - 16
fax:   +49-89-18 94 741 - 08

Registergericht: Amtsgericht München
Registernummer: HRB 157899
Vertretungsberechtigte Geschäftsführer: Peter Rasmussen, Thomas Dörfler
Unsere Datenschutzerklärung finden Sie hier:
https://embedded-brains.de/datenschutzerklaerung/


More information about the devel mailing list