Re: [PATCH RT] rt: add rwsem_is_contended() definition to rwsem_rt.h

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



* Clark Williams | 2014-08-27 16:09:28 [-0500]:

>Thomas,
>
>The latest btrfs code uses rwsem_is_contended() in the function
>caching_thread(). On RT systems, include/linux/rwsem.h is replaced with
>include/linux/rwsem_rt.h which does not provide a definition for
>rwsem_is_contended().  This commit provides a definition that should
>work on RT (where the lock is actually an rt_mutex).

I see that I added rwsem_is_contended() in v3.14-rt1 which does:
|static inline int rwsem_is_contended(struct rw_semaphore *sem)
|{
|      /* rt_mutex_has_waiters() */
|      return !RB_EMPTY_ROOT(&sem->lock.waiters);
|}

Do you lack this in kernel prior to v3.14?

Sebastian
--
To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [RT Stable]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux