Re: [PATCH] staging: nvec: use guard(mutex) in nvec_write_sync()

From: Jeremy Clifton

Date: Mon Oct 12 2026 - 17:56:19 EST


Thank you so much for your guidance and feedback.

It is the result that the patch will produce. All the unlock calls will
be deleted and the out of memory path will have no braces, as per
the style guidelines.

The motivation behind the patch is to defer usage of manual locks
for new and improved guards, disallowing lock leaks.

This way, there can be no error producing path by not calling unlock.

Shall I send a v2 with motivation included?

On 10/12/26 2:45 PM, Julia Lawall wrote:
Is this the motivation for
doing the patch or the result of the patch.