]> Zhao Yanbai Git Server - minix.git/commit
VFS: update filp_pos on chardev I/O (workaround) 60/960/2
authorDavid van Moolenbroek <david@minix3.org>
Mon, 2 Sep 2013 15:34:44 +0000 (17:34 +0200)
committerLionel Sambuc <lionel@minix3.org>
Tue, 18 Feb 2014 10:25:03 +0000 (11:25 +0100)
commit5c53b417cd16d3678e4097996827589526510224
treed2c861c227c3e1374ee9cd6fa5980c9298c72c7f
parent660d34cd85f595dcc14d3175d3c5e727f54fdb3f
VFS: update filp_pos on chardev I/O (workaround)

Previously, reading from or writing to a character device would not
update the file position on the corresponding filp object.  Performing
this update correctly is not trivial: during and after the I/O
operation, the filp object must not be locked.  Ideally, read/write
requests on a filp that is already involved in a read/write operation,
should be queued.  For now, we optimistically update the file position
at the start of the I/O; this works under the assumptions listed in
the corresponding comment.

Change-Id: I172a61781850423709924390ae3df1f2d1f94707
servers/vfs/read.c