[Drbd-dev] [PATCH] block: read i_size with i_size_read()

Jens Axboe jaxboe at fusionio.com
Sun Nov 7 12:45:39 CET 2010

On 2010-11-05 20:27, Mike Snitzer wrote:
> Convert direct reads of an inode's i_size to using i_size_read().
> i_size_{read,write} use a seqcount to protect reads from accessing
> incomple writes.  Concurrent i_size_write()s require mutual exclussion
> to protect the seqcount that is used by i_size_{read,write}.  But
> i_size_read() callers do not need to use additional locking.

Thanks Mike, I'll queue this up.

Jens Axboe

More information about the drbd-dev mailing list