|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [PATCH v6 7/8] xen/rwlock: raise the number of possible cpus
On 02.04.24 16:52, Jan Beulich wrote: On 27.03.2024 16:22, Juergen Gross wrote:@@ -36,14 +36,21 @@ void queue_write_lock_slowpath(rwlock_t *lock);static inline bool _is_write_locked_by_me(unsigned int cnts) You missed: #define _QR_SHIFT (_QW_SHIFT + 2) /* Reader count shift */ So the reader's shift is 16, resulting in 15 bits for the reader count. even in such a comment rather than using a literal number the corresponding expression would better be stated. Hmm, you mean replacing the 32768 with INT_MAX >> _QR_SHIFT? This would be fine with me. Juergen
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |