[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <8544b858-673f-0f59-0d8b-0474036068ce@smarthome-wolf.de>
Date: Sun, 25 Mar 2018 15:00:09 +0200
From: Marcus Wolf <marcus.wolf@...rthome-wolf.de>
To: Valentin Vidic <Valentin.Vidic@...Net.hr>
Cc: Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Simon Sandström <simon@...anor.nu>,
Marcus Wolf <linux@...f-Entwicklungen.de>,
Luca Söthe <luca@...l.me>,
Marcin Ciupak <marcin.s.ciupak@...il.com>,
Michael Panzlaff <michael.panzlaff@....de>,
Derek Robson <robsonde@...il.com>, devel@...verdev.osuosl.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] staging: pi433: add descriptions for mutex locks
Hi Valentin,
> But I have an idea to remove this kfifo_reset call in pi433_write
> handling partial message writes:
>
> kfifo_reset(&device->tx_fifo); // TODO: maybe find a solution, not to discard already stored, valid entries
>
> The writer could acquire the lock and than use kfifo_avail to check if
> there is enough space to write the whole message. What do you think?
Unfortunaly I can't find the time to have a closer look on the code this
weekend - still busy with tax stuff :-(
Idea sounds great. I'll try to look at the code and think about it
during Easter hollidays.
Cheers,
Marcus
--
Smarthome-Wolf UG (haftungsbeschränkt)
Helene-Lange-Weg 23
80637 München
Amtsgericht München, HRB 223529
Umastzsteuer-ID: DE304719911
Geschäftsführer: Marcus Wolf
Powered by blists - more mailing lists