From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter Zijlstra Subject: Re: [PATCH 09/27] nfs: writeback pages wait queue Date: Fri, 04 Mar 2011 10:10:43 +0100 Message-ID: <1299229843.2428.13484.camel@twins> References: <20110303064505.718671603@intel.com> <20110303074949.809203319@intel.com> <1299168481.1310.56.camel@laptop> <20110304020157.GB7976@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Cc: Andrew Morton , Jan Kara , Jens Axboe , Chris Mason , Trond Myklebust , Christoph Hellwig , Dave Chinner , Theodore Ts'o , Mel Gorman , Rik van Riel , KOSAKI Motohiro , Greg Thelen , Minchan Kim , Vivek Goyal , Andrea Righi , Balbir Singh , linux-mm , "linux-fsdevel@vger.kernel.org" , LKML To: Wu Fengguang Return-path: In-Reply-To: <20110304020157.GB7976@localhost> Sender: owner-linux-mm@kvack.org List-Id: linux-fsdevel.vger.kernel.org On Fri, 2011-03-04 at 10:01 +0800, Wu Fengguang wrote: > clear_bdi_congested(bdi, BLK_RW_SYNC); > /* > * On the following wake_up(), nfs_wait_congested= () > * will see the cleared bit and quit. > */ > smp_mb__after_clear_bit(); > } > if (waitqueue_active(&wqh[BLK_RW_SYNC])) > wake_up(&wqh[BLK_RW_SYNC]);=20 If I tell you that: try_to_wake_up() implies an smp_wmb(), do you then still need this? -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/ Don't email: email@kvack.org