Re: [RFC] ext3: per-process soft-syncing data=ordered mode

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Jan Kara <jack@...>
Cc: Chris Mason <chris.mason@...>, Andreas Dilger <adilger@...>, <linux-fsdevel@...>, <linux-kernel@...>
Date: Tuesday, February 5, 2008 - 3:20 pm

Jan Kara wrote:
:
:

Just a thought, but maybe double-buffering can help?


Making this RFC rather useful.

What we need now is an implementation, which should be easy.

Maybe something on these lines:

<< in ext3_ordered_write_end >>
  if (current->soft_sync & 1)
    return ext3_writeback_write_end;

<< in ext3_ordered_writepage >>
  if (current->soft_sync & 2)
    return ext3_writeback_writepage;

<< in ext3_sync_file >>
  if (current->soft_sync & 4)
    return ret;

<< in ext3_file_write >>
  if (current->soft_sync & 8)
    return ret;

As you can see soft_sync is masked and bits are ordered by importance.

It would be neat if somebody interested could cook-up a patch.


Thanks!

--
Al

-
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [RFC] ext3: per-process soft-syncing data=ordered mode, Andreas Dilger, (Fri Jan 25, 2:47 am)
Re: [RFC] ext3: per-process soft-syncing data=ordered mode, Andreas Dilger, (Wed Jan 30, 8:32 pm)
Re: [RFC] ext3: per-process soft-syncing data=ordered mode, Al Boldi, (Tue Feb 5, 3:20 pm)