| From: |
| Suparna Bhattacharya <suparna@in.ibm.com> |
| To: |
| bcrl@redhat.com, akpm@digeo.com |
| Subject: |
| [5/7] Filesystem AIO rdwr - use down_wq for aio write |
| Date: |
| Thu, 24 Apr 2003 10:49:12 +0530 |
| Cc: |
| linux-kernel@vger.kernel.org, linux-aio@kvack.org,
linux-fsdevel@vger.kernel.org |
On Thu, Apr 24, 2003 at 10:22:22AM +0530, Suparna Bhattacharya wrote:
> Here is a revised version of the filesystem AIO patches
> for 2.5.68.
>
> 05aiowrdown_wq.patch : Uses async down for aio write
Will currently compile only for x86, since down_wq
support isn't implemented on other archs.
Regards
Suparna
05aiowrdown_wq.patch
....................
filemap.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletion(-)
diff -ur -X /home/kiran/dontdiff linux-2.5.68/mm/filemap.c linux-aio-2568/mm/filemap.c
--- linux-2.5.68/mm/filemap.c Mon Apr 21 23:30:40 2003
+++ linux-aio-2568/mm/filemap.c Tue Apr 22 00:28:55 2003
@@ -1786,7 +1851,8 @@
BUG_ON(iocb->ki_pos != pos);
- down(&inode->i_sem);
+ if ((err = down_wq(&inode->i_sem, current->io_wait)))
+ return err;
err = generic_file_aio_write_nolock(iocb, &local_iov, 1,
&iocb->ki_pos);
up(&inode->i_sem);
--
Suparna Bhattacharya (suparna@in.ibm.com)
Linux Technology Center
IBM Software Labs, India
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/