Re: [RESEND] [PATCH] VFS: make file->f_pos access atomic on 32bit arch

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Hisashi Hifumi
Date: Tuesday, October 7, 2008 - 9:48 pm

At 11:35 08/10/08, Nick Piggin wrote:

Simultaneous access by two or more writer can corrupt file content,
so this case needs some locks(flock or fcntl) to preserve synchronization
of file content. This is responsibility of user-space application.
But file->f_pos race issue can occur even if multiple threads just read 
simultaneously. I think this is not responsibility of user-space application. 
To avoid this currently, an application needs some locks to protect file offset
even if it just read a file. So I think f_pos race should be fixed.

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [RESEND] [PATCH] VFS: make file->f_pos access atomic o ..., Hisashi Hifumi, (Tue Oct 7, 9:48 pm)
Re: [RESEND] [PATCH] VFS: make file->f_pos access atomic o ..., Jeremy Fitzhardinge, (Thu Oct 9, 10:29 am)