On Fri, 2013-03-15 at 18:24 -0400, Jeff Mahoney wrote: > Commit d646a02a9d44d1421f273ae3923d97b47b918176 upstream. > > blkdev_ioctl(GETBLKSIZE) uses i_size_read() to read size of block device. > If we update block size directly, reader may see intermediate result in > some machines and configurations. Use i_size_write() instead. > > Signed-off-by: Guo Chao <yan@xxxxxxxxxxxxxxxxxx> > Cc: Alexander Viro <viro@xxxxxxxxxxxxxxxxxx> > Cc: Guo Chao <yan@xxxxxxxxxxxxxxxxxx> > Cc: M. Hindess <hindessm@xxxxxxxxxx> > Cc: Nikanth Karthikesan <knikanth@xxxxxxx> > Cc: Jens Axboe <axboe@xxxxxxxxx> > Cc: stable@xxxxxxxxxxxxxxx # 3.0 3.2 3.4 3.8 > Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> > Signed-off-by: Jens Axboe <axboe@xxxxxxxxx> > Acked-by: Jeff Mahoney <jeffm@xxxxxxxx> [...] Queued up for 3.2, thanks. Ben. -- Ben Hutchings Never attribute to conspiracy what can adequately be explained by stupidity.
Attachment:
signature.asc
Description: This is a digitally signed message part