This request was evaluated by Red Hat Product Management for inclusion in a Red Hat Enterprise Linux maintenance release. Product Management has requested further review of this request by Red Hat Engineering, for potential inclusion in a Red Hat Enterprise Linux Update release for currently deployed products. This request is not yet committed for inclusion in an Update release.
*** Bug 647245 has been marked as a duplicate of this bug. ***
in kernel-2.6.18-230.el5 You can download this test kernel (or newer) from http://people.redhat.com/jwilson/el5 Detailed testing feedback is always welcomed.
reproduced on 2.6.18-229.el5 [root@dell-pet310-02 647601-dio-write-on-nfs]# uname -a Linux dell-pet310-02.lab.bos.redhat.com 2.6.18-229.el5 #1 SMP Tue Oct 26 18:54:44 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux [root@dell-pet310-02 647601-dio-write-on-nfs]# mount | tail -1 localhost:/home on /root/647601-dio-write-on-nfs/nfs type nfs (rw,addr=127.0.0.1) [root@dell-pet310-02 647601-dio-write-on-nfs]# ./reproducer /root/647601-dio-write-on-nfs/nfs/testfile Could not write to file (12) Cannot allocate memory [root@dell-pet310-02 647601-dio-write-on-nfs]# echo $? 12 [root@dell-pet310-02 647601-dio-write-on-nfs]# verified on 2.6.18-230.el5 [root@dell-pet310-02 647601-dio-write-on-nfs]# uname -a Linux dell-pet310-02.lab.bos.redhat.com 2.6.18-230.el5 #1 SMP Thu Oct 28 17:09:10 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux [root@dell-pet310-02 647601-dio-write-on-nfs]# mount | tail -1 localhost:/home on /root/647601-dio-write-on-nfs/nfs type nfs (rw,addr=127.0.0.1) [root@dell-pet310-02 647601-dio-write-on-nfs]# ./reproducer /root/647601-dio-write-on-nfs/nfs/testfile [root@dell-pet310-02 647601-dio-write-on-nfs]# echo $? 0 [root@dell-pet310-02 647601-dio-write-on-nfs]# verified on x86_64 and i386
Technical note added. If any revisions are required, please edit the "Technical Notes" field accordingly. All revisions will be proofread by the Engineering Content Services team. New Contents: Performing a Direct IO write operation to a file on an NFS mount did not work. With this update, the minor error in the source code was fixed and the Direct IO operation works as expected.
An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on therefore solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHSA-2011-0017.html