fix deadlock between kjournald2 trying to acquire the page lock
owned by an ost_io thread waiting for journal commit.
o=johann
i=adiger
i=girish
LASSERT(PageLocked(lnb->page));
LASSERT(!PageWriteback(lnb->page));
- /* preceding filemap_write_and_wait() should have clean pages */
- if (fo->fo_writethrough_cache)
- clear_page_dirty_for_io(lnb->page);
+ /* since write & truncate are serialized by the i_alloc_sem,
+ * even partial truncate should not leave dirty pages in
+ * the page cache */
LASSERT(!PageDirty(lnb->page));
SetPageUptodate(lnb->page);