linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* deadlock balance_dirty_pages() to be expected?
@ 2011-10-07 12:34 Bernd Schubert
  2011-10-07 13:37 ` Wu Fengguang
  0 siblings, 1 reply; 8+ messages in thread
From: Bernd Schubert @ 2011-10-07 12:34 UTC (permalink / raw)
  To: linux-fsdevel; +Cc: Wu Fengguang

Hello,

while I'm working on the page cached mode in FhGFS (*) I noticed a 
deadlock in balance_dirty_pages().

sysrq-w showed that it never started background write-out due to

if (bdi_nr_reclaimable > bdi_thresh) {
	pages_written += writeback_inodes_wb(&bdi->wb,
					    (write_chunk);


and therefore also did not leave that loop with

	if (pages_written >= write_chunk)
  				break;	/* We've done our duty */


So my process stay in uninterruptible D-state forever.

Once I added basic inode->i_data.backing_dev_info bdi support to our 
file system, the deadlock did not happen anymore.

So my question is simply if we should expect this deadlock, if the file 
system does not set up backing device information and if so, shouldn't 
this be documented?


Thanks,
Bernd


PS: While FhGFS has a proprietary license right now, we will soon at 
least provide the client kernel modules under the GPL.

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2011-10-12  1:45 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-07 12:34 deadlock balance_dirty_pages() to be expected? Bernd Schubert
2011-10-07 13:37 ` Wu Fengguang
2011-10-07 14:08   ` Bernd Schubert
2011-10-07 14:21     ` Wu Fengguang
2011-10-07 14:30       ` Bernd Schubert
2011-10-07 14:38         ` Wu Fengguang
2011-10-11 14:55           ` Bernd Schubert
2011-10-12  1:45             ` Wu Fengguang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).