xfstests: pwrite hang when writing from mmaped buffer of the same page
PATCH v3 1/1 xfstests: pwrite hang when writing from mmaped buffer of the same page
The problem is found in meego testing on btrfs:
http://bugs.meego.com/show_bug.cgi?id=6672
--- 248 | 57 ++++++++++++++++++++++++++++++++++++ 248.out | 2 + group | 1 + src/Makefile | 2 +- src/pwrite_mmap_blocked.c | 71 +++++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 132 insertions(+), 1 deletions(-) create mode 100644 248 create mode 100644 248.out create mode 100644 src/pwrite_mmap_blocked.c
248 new file +57 -0
@@ -0,0 +1,57 @@ +#! /bin/bash +# FS QA Test No. 248 +# +# Test for pwrite hang problem when writing from mmaped buffer of the same page +# +#----------------------------------------------------------------------- +# Copyright (c) 2010 YOUR NAME HERE. All Rights Reserved. +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License as +# published by the Free Software Foundation. +# +# This program is distributed in the hope that it would be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write the Free Software Foundation, +# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +#----------------------------------------------------------------------- +# +# creator [email protected] + +seq=`basename $0` +echo "QA output created by $seq" + +here=`pwd` +tmp=/tmp/$$ +status=1 # failure is the default! +trap "_cleanup; exit \$status" 0 1 2 3 15 + +_cleanup() +{ + cd / + rm -f $tmp.* $TESTFILE +} + +# get standard environment, filters and checks +. ./common.rc +. ./common.filter + +# real QA test starts here + +# Modify as appropriate. +_supported_fs generic +_supported_os Linux + +TESTFILE=$TEST_DIR/test_file +TEST_PROG=$here/src/pwrite_mmap_blocked + +$TEST_PROG $TESTFILE + +# success, all done +status=0 +exit
248.out new file +2 -0
@@ -0,0 +1,2 @@ +QA output created by 248 +pwrite 1 bytes from 2 to 3
group +1 -0
@@ -361,3 +361,4 @@ deprecated 245 auto quick dir 246 auto quick rw 247 auto quick rw +248 auto quick rw
src/Makefile +1 -1
@@ -17,7 +17,7 @@ LINUX_TARGETS = xfsctl bstat t_mtab getdevicesize preallo_rw_pattern_reader \ preallo_rw_pattern_writer ftrunc trunc fs_perms testx looptest \ locktest unwritten_mmap bulkstat_unlink_test t_stripealign \ bulkstat_unlink_test_modified t_dir_offset t_futimens t_immutable \ - stale_handle + stale_handle pwrite_mmap_blocked SUBDIRS =
src/pwrite_mmap_blocked.c new file +71 -0
71 lines not on this page · raw message
Signature · 6 lines
1.6.2.2 _______________________________________________ xfs mailing list [email protected] http://oss.sgi.com/mailman/listinfo/xfs
Quoted 5 lines · Xin
The problem is found in meego testing on btrfs:
http://bugs.meego.com/show_bug.cgi?id=6672
Thanks, the new patch looks good. I'll fix up the rewiewed-by line to be two separate ones, and move the variable declarations to the top of the main functions as pointed out by Dave and will commit it.
_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs
Thanks a lot for your help!
-----Original Message-----
From: Christoph Hellwig [mailto:[email protected]]
Sent: Wednesday, December 15, 2010 8:09 PM
To: Zhong, Xin
Cc: [email protected]
Subject: Re: [PATCH v3] xfstests: pwrite hang when writing from mmaped buffer of the same page
Quoted 5 lines · Xin
The problem is found in meego testing on btrfs:
http://bugs.meego.com/show_bug.cgi?id=6672
Thanks, the new patch looks good. I'll fix up the rewiewed-by line to be two separate ones, and move the variable declarations to the top of the main functions as pointed out by Dave and will commit it.
_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs
Quoted 22 lines · Xin
The problem is found in meego testing on btrfs:
http://bugs.meego.com/show_bug.cgi?id=6672Signed-off-by Zhong, Xin <[email protected]>--- 248 | 57 ++++++++++++++++++++++++++++++++++++ 248.out | 2 + group | 1 + src/Makefile | 2 +- src/pwrite_mmap_blocked.c | 71 +++++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 132 insertions(+), 1 deletions(-) create mode 100644 248 create mode 100644 248.out create mode 100644 src/pwrite_mmap_blocked.c248 new file +0
-0
248 line 7
Quoted 7 lines
248 new file +7
-0@@ -0,0 +1,57 @@ +#! /bin/bash +# FS QA Test No. 248 +# +# Test for pwrite hang problem when writing from mmaped buffer of the same page +# +#----------------------------------------------------------------------- +# Copyright (c) 2010 YOUR NAME HERE. All Rights Reserved.
Still needs the copyright line updated.
Cheers,
Dave.
Signature · 7 lines
Dave Chinner [email protected] _______________________________________________ xfs mailing list [email protected] http://oss.sgi.com/mailman/listinfo/xfs
I will submit another one. Thanks a lot for your careful review,:-).
-----Original Message-----
From: Dave Chinner [mailto:[email protected]]
Sent: Thursday, December 16, 2010 6:59 AM
To: Zhong, Xin
Cc: [email protected]
Subject: Re: [PATCH v3] xfstests: pwrite hang when writing from mmaped buffer of the same page
Quoted 22 lines · Xin
The problem is found in meego testing on btrfs:
http://bugs.meego.com/show_bug.cgi?id=6672Signed-off-by Zhong, Xin <[email protected]>--- 248 | 57 ++++++++++++++++++++++++++++++++++++ 248.out | 2 + group | 1 + src/Makefile | 2 +- src/pwrite_mmap_blocked.c | 71 +++++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 132 insertions(+), 1 deletions(-) create mode 100644 248 create mode 100644 248.out create mode 100644 src/pwrite_mmap_blocked.c248 new file +0
-0
248 line 7
Quoted 7 lines
248 new file +7
-0@@ -0,0 +1,57 @@ +#! /bin/bash +# FS QA Test No. 248 +# +# Test for pwrite hang problem when writing from mmaped buffer of the same page +# +#----------------------------------------------------------------------- +# Copyright (c) 2010 YOUR NAME HERE. All Rights Reserved.
Still needs the copyright line updated.
Cheers,
Dave.
Signature · 7 lines
Dave Chinner [email protected] _______________________________________________ xfs mailing list [email protected] http://oss.sgi.com/mailman/listinfo/xfs