Will Deacon
2408bb459f
ARC: atomics: unbork atomic_fetch_##op()
[ Upstream commit 3fcbb8260a ]
In 4.19-rc1, Eugeniy reported weird boot and IO errors on ARC HSDK
| INFO: task syslogd:77 blocked for more than 10 seconds.
| Not tainted 4.19.0-rc1-00007-gf213acea4e88 #40
| "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this
| message.
| syslogd D 0 77 76 0x00000000
|
| Stack Trace:
| __switch_to+0x0/0xac
| __schedule+0x1b2/0x730
| io_schedule+0x5c/0xc0
| __lock_page+0x98/0xdc
| find_lock_entry+0x38/0x100
| shmem_getpage_gfp.isra.3+0x82/0xbfc
| shmem_fault+0x46/0x138
| handle_mm_fault+0x5bc/0x924
| do_page_fault+0x100/0x2b8
| ret_from_exception+0x0/0x8
He bisected to 84c6591103 ("locking/atomics,
asm-generic/bitops/lock.h: Rewrite using atomic_fetch_*()")
This commit however only unmasked the real issue introduced by commit
4aef66c8ae ("locking/atomic, arch/arc: Fix build") which missed the
retry-if-scond-failed branch in atomic_fetch_##op() macros.
The bisected commit started using atomic_fetch_##op() macros for building
the rest of atomics.
Fixes: 4aef66c8ae ("locking/atomic, arch/arc: Fix build")
Reported-by: Eugeniy Paltsev <paltsev@synopsys.com>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
[vgupta: wrote changelog]
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-05-15 08:33:35 +09:00
..
2016-11-07 11:01:12 -08:00
2013-01-28 12:34:21 +05:30
2023-05-15 08:33:35 +09:00
2016-05-09 09:32:33 +05:30
2016-05-09 09:32:33 +05:30
2014-10-13 14:46:18 +05:30
2017-08-30 10:21:46 +02:00
2017-01-09 08:32:21 +01:00
2016-03-13 23:55:13 -04:00
2016-05-09 09:32:33 +05:30
2014-10-13 14:46:20 +05:30
2023-05-12 17:14:31 +09:00
2013-02-15 23:16:04 +05:30
2016-03-19 14:34:09 +05:30
2016-03-10 14:44:13 -06:00
2016-09-30 14:48:22 -07:00
2016-10-19 14:38:53 -07:00
2017-05-03 08:36:39 -07:00
2016-05-30 10:07:32 +05:30
2016-08-19 10:44:13 -07:00
2013-02-11 20:00:34 +05:30
2016-04-07 14:59:09 +05:30
2018-05-19 10:27:00 +02:00
2015-10-28 19:49:04 +05:30
2016-05-19 19:12:14 -07:00
2016-05-05 16:35:28 +05:30
2016-05-09 09:32:30 +05:30
2016-09-30 14:48:25 -07:00
2016-08-10 10:14:07 -07:00
2015-06-22 14:06:55 +05:30
2016-09-06 10:53:32 -05:00
2013-02-11 20:00:34 +05:30
2014-10-13 14:46:20 +05:30
2015-10-28 19:49:04 +05:30
2013-06-26 15:30:50 +05:30
2016-09-30 14:48:22 -07:00
2023-05-12 17:04:31 +09:00
2016-10-16 15:49:07 -07:00
2016-05-30 10:07:32 +05:30
2015-10-29 18:41:30 +05:30
2016-05-05 16:35:46 +05:30
2017-01-26 08:24:37 +01:00
2013-02-15 23:16:02 +05:30
2023-05-12 16:36:40 +09:00
2016-03-10 14:44:13 -06:00
2016-09-30 14:48:18 -07:00
2016-06-24 17:23:52 -07:00
2023-05-12 16:36:38 +09:00
2016-05-30 10:07:32 +05:30
2017-05-03 08:36:39 -07:00
2014-04-30 00:59:13 -05:00
2013-02-11 20:00:31 +05:30
2015-02-02 17:08:37 +05:30
2016-10-28 10:09:07 -07:00
2013-05-09 22:00:57 +05:30
2016-11-08 12:05:10 -08:00
2015-08-04 09:26:33 +05:30
2016-06-14 11:55:15 +02:00
2015-02-27 10:15:00 +05:30
2014-10-13 14:46:20 +05:30
2013-02-11 20:00:38 +05:30
2013-06-22 19:23:26 +05:30
2016-10-24 09:24:26 -07:00
2016-05-30 10:07:32 +05:30
2013-02-11 20:00:39 +05:30
2013-06-22 13:46:42 +05:30
2013-06-22 13:46:42 +05:30
2016-03-17 15:31:45 +05:30
2018-01-10 09:29:53 +01:00
2014-10-13 14:46:15 +05:30
2015-12-17 11:10:23 +05:30