Bug 237707 - GFS vector read-write (readv-writev) not working
GFS vector read-write (readv-writev) not working
Status: CLOSED NOTABUG
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: gfs-kmod (Show other bugs)
5.0
All Linux
medium Severity medium
: ---
: ---
Assigned To: Wendy Cheng
GFS Bugs
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2007-04-24 17:11 EDT by Wendy Cheng
Modified: 2010-01-11 22:26 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2007-05-04 10:24:21 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:


Attachments (Terms of Use)

  None (edit)
Description Wendy Cheng 2007-04-24 17:11:22 EDT
Description of problem:

Some VFS hooks have been changed between RHEL 4 (2.6.9 based kernel)
and RHEL 5 (2.6.18 based kernel). One noticable difference is vector 
read-write system calls (readv and writev). It uses plain filesystem 
read and write calls in 2.6.9 kernel but invokes aio_read and aio_write 
in 2.6.18 (and after) kernel. Unfortunately, GFS1 AIO code is mostly 
2.6.9 base that takes only one single user buffer. This breaks GFS1 
readv() and writev() in multiple buffers cases.

Version-Release number of selected component (if applicable):
RHEL 5 and CVS head

How reproducible:
always
Comment 1 Wendy Cheng 2007-04-24 17:22:16 EDT
GFS2 is immune from this issue since it uses VFS generic calls. 
Comment 3 Wendy Cheng 2007-05-03 22:10:09 EDT
ah ? not sure the kernel base I was when I wrote this bugzilla... I checked
the code again today .. the kernel uses plain gfs_write.... !!!!!
Comment 4 Wendy Cheng 2007-05-03 22:28:29 EDT
oh, I see... I was in Steve's nmw tree... so

GFS1 readv-writev, togather with NFS read-write, will be broken in most 
recent upstream kernel but it is still ok with RHEL5 kernel. 

Maybe I should cancel this bugzilla.. 
Comment 5 Wendy Cheng 2007-05-03 22:30:04 EDT
On the other hand, this means our GFS1 in CVS head is broken now. 
Comment 6 Wendy Cheng 2007-05-03 22:59:44 EDT
Worse than I expect in CVS head .. the AIO code there doesn't look familar 
at all (did I do that ?) and it is very wrong. So three pieces are wrong in 
GFS1 cvs head:

1. AIO
2. Readv-Writev
3. NFS 


Comment 7 Wendy Cheng 2007-05-03 23:02:35 EDT
To recap..

RHEL4 is ok
RHEl5 is ok
CVS head is broken.

I'll continue tomorrow. 
Comment 8 Wendy Cheng 2007-05-03 23:20:50 EDT
Ha! Just check CVS log - I knew it wasn't me :) .. Will fix it tomorrow. 
Comment 9 Wendy Cheng 2007-05-04 10:24:21 EDT
Close this bugzilla since RHEL 5 doesn't have this issue. 
Comment 10 Nate Straz 2007-12-13 12:42:34 EST
Moving all RHCS ver 5 bugs to RHEL 5 so we can remove RHCS v5 which never existed.
Comment 11 Nate Straz 2007-12-19 15:06:37 EST
Moving all closed bugs to gfs-kmod to match the rpm name.  GFS-kernel will be
removed.

Note You need to log in before you can comment on or make changes to this bug.