From: Jeff Dike <jdike@ka...> - 2001-08-07 20:08:56
> This patch makes hostfs use pread()/pwrite() instead of lseek()+read()/
> write(). This is not only faster,
Probably not much faster. lseek doesn't do anything except set f_pos,
and the actual system call isn't that expensive.
> but removes possible (future) race
Yeah, this is an SMP concern. The block device should also use them. I
think it's protected by the io_request_lock, but pread/pwrite there would
make sure there's no problem.
> I also removed the append flag to write_file() since it is
> no longer used.
> This makes hostfs_write() not only obsolete, but also
> invalid, so I removed it completely.
And more good...