| To: | Rusty Russell <rusty@xxxxxxxxxxxxxxx> |
|---|---|
| Subject: | Re: [PATCH 1/1] Replace down_trylock() with down_try(), reverse return values. |
| From: | Christoph Hellwig <hch@xxxxxxxxxxxxx> |
| Date: | Mon, 5 May 2008 02:12:17 -0400 |
| Cc: | Christoph Hellwig <hch@xxxxxxxxxxxxx>, linux-kernel@xxxxxxxxxxxxxxx, gregkh@xxxxxxx, kaos@xxxxxxx, Stephen Rothwell <sfr@xxxxxxxxxxx>, rolandd@xxxxxxxxx, "Brian S. Julin" <bri@xxxxxxxxx>, Martin Diehl <info@xxxxxxxxx>, mokuno@xxxxxxxxxxxxx, aacraid@xxxxxxxxxxx, mfasheh@xxxxxxxx, wim@xxxxxxxxx, xfs@xxxxxxxxxxx, reiserfs-devel@xxxxxxxxxxxxxxx, Matthew Wilcox <willy@xxxxxxxxxxxxxxx> |
| In-reply-to: | <200805051609.13731.rusty@rustcorp.com.au> |
| References: | <200805051156.36437.rusty@rustcorp.com.au> <20080505055823.GA20970@infradead.org> <200805051609.13731.rusty@rustcorp.com.au> |
| Sender: | xfs-bounce@xxxxxxxxxxx |
| User-agent: | Mutt/1.5.17 (2007-11-01) |
On Mon, May 05, 2008 at 04:09:12PM +1000, Rusty Russell wrote: > > Given that people are actively trying to kill struct semaphore I don't > > think doing a big search and rename is a good idea right now. > > If it goes away before the 2.6.27 merge window, great. But I don't see that > happening, so let's clean up this horror. I cc'd all the people effected in > the hope that it will prod some of them towards mutexes anyway. .27 might not be doable but .28 seems probable if willy and co are continuing to churn like they do currently. > > (And I also really hate the name down_try, but when it goes away that's > > rather void and we can spare the discussion) > > Ideas? down() is pretty bad, down_try() matches it. The trylock is a convention for real locking function, so having one stand out would be nasty. Then again a semaphore is not just a simple lock but a higher level locking primitive, so a down_nowait might make sense because we don't encode the lock anywhere else either |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: TAKE 981154 - Add support for sb_bad_features2 in QA 122, Barry Naujok |
|---|---|
| Next by Date: | Re: review: xfstests/016 change, Timothy Shimmin |
| Previous by Thread: | Re: [PATCH 1/1] Replace down_trylock() with down_try(), reverse return values., Rusty Russell |
| Next by Thread: | review: xfstests/016 change, Timothy Shimmin |
| Indexes: | [Date] [Thread] [Top] [All Lists] |