RE: [PATCH] Btrfs: pwrite blocked when writing from the mmaped buffer of the same page

2010-12-13 Thread Zhong, Xin
blocked when writing from the mmaped buffer of the same page Care to write a xfstests test for this behaviour? -- To unsubscribe from this list: send the line unsubscribe linux-btrfs in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo

RE: [PATCH] Btrfs: pwrite blocked when writing from the mmaped buffer of the same page

2010-12-13 Thread Chris Mason
Excerpts from Zhong, Xin's message of 2010-12-13 03:26:04 -0500: I have sent my test case to xfs mailing list (No. 248). Please help to review it. Thanks! You btrfs patch is now in the master branch of the btrfs unstable tree. Thanks! -chris -- To unsubscribe from this list: send the line

RE: [PATCH] Btrfs: pwrite blocked when writing from the mmaped buffer of the same page

2010-12-13 Thread Zhong, Xin
: [PATCH] Btrfs: pwrite blocked when writing from the mmaped buffer of the same page Excerpts from Zhong, Xin's message of 2010-12-13 03:26:04 -0500: I have sent my test case to xfs mailing list (No. 248). Please help to review it. Thanks! You btrfs patch is now in the master branch of the btrfs

RE: [PATCH] Btrfs: pwrite blocked when writing from the mmaped buffer of the same page

2010-12-07 Thread Zhong, Xin
? Thanks! -Original Message- From: Zhong, Xin Sent: Tuesday, December 07, 2010 4:00 PM To: linux-btrfs@vger.kernel.org Cc: Zhong, Xin Subject: [PATCH] Btrfs: pwrite blocked when writing from the mmaped buffer of the same page This problem is found in meego testing: http://bugs.meego.com

RE: [PATCH] Btrfs: pwrite blocked when writing from the mmaped buffer of the same page

2010-12-07 Thread Zhong, Xin
] Btrfs: pwrite blocked when writing from the mmaped buffer of the same page The other filesystems such as ext3 do not have this problem since they are using generic_file_buffered_write(). And this problem is fixed back in 2007 for generic_file_buffered_write(): http://lkml.org/lkml/2007/2/4/26 I

[PATCH] Btrfs: pwrite blocked when writing from the mmaped buffer of the same page

2010-12-07 Thread Xin Zhong
This problem is found in meego testing: http://bugs.meego.com/show_bug.cgi?id=6672 A file in btrfs is mmaped and the mmaped buffer is passed to pwrite to write to the same page of the same file. In btrfs_file_aio_write(), the pages is locked by prepare_pages(). So when btrfs_copy_from_user() is

RE: [PATCH] Btrfs: pwrite blocked when writing from the mmaped buffer of the same page

2010-12-07 Thread Zhong, Xin
writing from the mmaped buffer of the same page This problem is found in meego testing: http://bugs.meego.com/show_bug.cgi?id=6672 A file in btrfs is mmaped and the mmaped buffer is passed to pwrite to write to the same page of the same file. In btrfs_file_aio_write(), the pages is locked

RE: [PATCH] Btrfs: pwrite blocked when writing from the mmaped buffer of the same page

2010-12-07 Thread Zhong, Xin
? Thanks! -Original Message- From: Zhong, Xin Sent: Tuesday, December 07, 2010 5:25 PM To: linux-btrfs@vger.kernel.org Cc: Zhong, Xin Subject: [PATCH] Btrfs: pwrite blocked when writing from the mmaped buffer of the same page This problem is found in meego testing: http://bugs.meego.com

Re: [PATCH] Btrfs: pwrite blocked when writing from the mmaped buffer of the same page

2010-12-07 Thread Christoph Hellwig
Care to write a xfstests test for this behaviour? -- To unsubscribe from this list: send the line unsubscribe linux-btrfs in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

[PATCH] Btrfs: pwrite blocked when writing from the mmaped buffer of the same page

2010-12-06 Thread Xin Zhong
This problem is found in meego testing: http://bugs.meego.com/show_bug.cgi?id=6672 A file in btrfs is mmaped and the mmaped buffer is passed to pwrite to write to the same page of the same file. In btrfs_file_aio_write(), the pages is locked by prepare_pages(). So when btrfs_copy_from_user() is