Re: [PATCH RESEND] Handle i_size > s_maxbytes correctly

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Christoph Hellwig <hch@...>
Cc: <linux-kernel@...>, Andrew Morton <akpm@...>, Mark Fasheh <mark.fasheh@...>
Date: Wednesday, January 23, 2008 - 3:41 pm

On Wed 23-01-08 19:13:06, Christoph Hellwig wrote:
  I'm fine with that ;).

  But with which lock you'd like to lock-around i_size update? Note that
you have to make sure you won't race even with read path which currently
doesn't take any locks at all (except for page lock) if I'm right... So,
e.g. NFS, would have to wrap generic_file_aio_read() in some lock to
prevent inode updates while generic_file_aio_read() runs. That doesn't
sound too appealing to me.

								Honza
-- 
Jan Kara <jack@suse.cz>
SUSE Labs, CR
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH RESEND] Handle i_size &gt; s_maxbytes correctly, Christoph Hellwig, (Wed Jan 23, 3:13 pm)
Re: [PATCH RESEND] Handle i_size > s_maxbytes correctly, Jan Kara, (Wed Jan 23, 3:41 pm)