Re: [PATCH 1/2] rwsem: add rwsem_is_contended V2

2013-09-19 Thread Josef Bacik
On Thu, Sep 19, 2013 at 06:57:27PM -0400, Peter Hurley wrote: > On 09/19/2013 11:48 AM, Josef Bacik wrote: > >Btrfs needs a simple way to know if it needs to let go of it's read lock on a > >rwsem. Introduce rwsem_is_contended to check to see if there are any > >waiters on > >this rwsem currently

Re: [PATCH 1/2] rwsem: add rwsem_is_contended V2

2013-09-19 Thread Peter Hurley
On 09/19/2013 11:48 AM, Josef Bacik wrote: Btrfs needs a simple way to know if it needs to let go of it's read lock on a rwsem. Introduce rwsem_is_contended to check to see if there are any waiters on this rwsem currently. This is just a hueristic, it is meant to be light and not 100% accurate