Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1445687

Re: [PATCH] eeprom: at24: tweak the loop_until_timeout() macro

From Wolfram Sang <wsa@the-dreams.de>
Newsgroups linux.kernel
Subject Re: [PATCH] eeprom: at24: tweak the loop_until_timeout() macro
Date 2016-07-18 20:20 +0200
Message-ID <rWlj4-1gf-47@gated-at.bofh.it> (permalink)
References <rVZix-4fE-15@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

On Sun, Jul 17, 2016 at 08:40:06PM +0200, Bartosz Golaszewski wrote:
> loop_until_timeout() replaced a do {} while loop in the at24 driver
> with a for loop which, under certain circumstances (such as heavy load
> or low value of the write_timeout argument), can lead to the code in
> the loop never being executed.
> 
> Make sure that at least one iteration of the code enclosed within
> loop_until_timeout() is always executed.
> 
> Suggested-by: Wolfram Sang <wsa@the-dreams.de>
> Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>

Applied to for-next, thanks!

Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

[PATCH] eeprom: at24: tweak the loop_until_timeout() macro Bartosz Golaszewski <bgolaszewski@baylibre.com> - 2016-07-17 20:50 +0200
  Re: [PATCH] eeprom: at24: tweak the loop_until_timeout() macro Wolfram Sang <wsa@the-dreams.de> - 2016-07-18 20:20 +0200

csiph-web