diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2013-09-13 13:55:58 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-09-13 13:55:58 -0400 |
commit | 9bf12df31f282e845b3dfaac1e5d5376a041da22 (patch) | |
tree | 10d7a21d34c7f2c47eff3e807f5efef46228d507 /drivers/staging | |
parent | 399a946edbbe90bd03aec2e93ce58c9b3f18e70b (diff) | |
parent | d9b2c8714aef102dea95544a8cd9372b21af463f (diff) |
Merge git://git.kvack.org/~bcrl/aio-next
Pull aio changes from Ben LaHaise:
"First off, sorry for this pull request being late in the merge window.
Al had raised a couple of concerns about 2 items in the series below.
I addressed the first issue (the race introduced by Gu's use of
mm_populate()), but he has not provided any further details on how he
wants to rework the anon_inode.c changes (which were sent out months
ago but have yet to be commented on).
The bulk of the changes have been sitting in the -next tree for a few
months, with all the issues raised being addressed"
* git://git.kvack.org/~bcrl/aio-next: (22 commits)
aio: rcu_read_lock protection for new rcu_dereference calls
aio: fix race in ring buffer page lookup introduced by page migration support
aio: fix rcu sparse warnings introduced by ioctx table lookup patch
aio: remove unnecessary debugging from aio_free_ring()
aio: table lookup: verify ctx pointer
staging/lustre: kiocb->ki_left is removed
aio: fix error handling and rcu usage in "convert the ioctx list to table lookup v3"
aio: be defensive to ensure request batching is non-zero instead of BUG_ON()
aio: convert the ioctx list to table lookup v3
aio: double aio_max_nr in calculations
aio: Kill ki_dtor
aio: Kill ki_users
aio: Kill unneeded kiocb members
aio: Kill aio_rw_vect_retry()
aio: Don't use ctx->tail unnecessarily
aio: io_cancel() no longer returns the io_event
aio: percpu ioctx refcount
aio: percpu reqs_available
aio: reqs_active -> reqs_available
aio: fix build when migration is disabled
...
Diffstat (limited to 'drivers/staging')
-rw-r--r-- | drivers/staging/android/logger.c | 2 | ||||
-rw-r--r-- | drivers/staging/lustre/lustre/llite/file.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/drivers/staging/android/logger.c b/drivers/staging/android/logger.c index a8c344422a77..d42f5785f098 100644 --- a/drivers/staging/android/logger.c +++ b/drivers/staging/android/logger.c | |||
@@ -481,7 +481,7 @@ static ssize_t logger_aio_write(struct kiocb *iocb, const struct iovec *iov, | |||
481 | header.sec = now.tv_sec; | 481 | header.sec = now.tv_sec; |
482 | header.nsec = now.tv_nsec; | 482 | header.nsec = now.tv_nsec; |
483 | header.euid = current_euid(); | 483 | header.euid = current_euid(); |
484 | header.len = min_t(size_t, iocb->ki_left, LOGGER_ENTRY_MAX_PAYLOAD); | 484 | header.len = min_t(size_t, iocb->ki_nbytes, LOGGER_ENTRY_MAX_PAYLOAD); |
485 | header.hdr_size = sizeof(struct logger_entry); | 485 | header.hdr_size = sizeof(struct logger_entry); |
486 | 486 | ||
487 | /* null writes succeed, return zero */ | 487 | /* null writes succeed, return zero */ |
diff --git a/drivers/staging/lustre/lustre/llite/file.c b/drivers/staging/lustre/lustre/llite/file.c index 253f02688f4f..bc534db12431 100644 --- a/drivers/staging/lustre/lustre/llite/file.c +++ b/drivers/staging/lustre/lustre/llite/file.c | |||
@@ -1009,7 +1009,7 @@ static ssize_t ll_file_read(struct file *file, char *buf, size_t count, | |||
1009 | local_iov->iov_len = count; | 1009 | local_iov->iov_len = count; |
1010 | init_sync_kiocb(kiocb, file); | 1010 | init_sync_kiocb(kiocb, file); |
1011 | kiocb->ki_pos = *ppos; | 1011 | kiocb->ki_pos = *ppos; |
1012 | kiocb->ki_left = count; | 1012 | kiocb->ki_nbytes = count; |
1013 | 1013 | ||
1014 | result = ll_file_aio_read(kiocb, local_iov, 1, kiocb->ki_pos); | 1014 | result = ll_file_aio_read(kiocb, local_iov, 1, kiocb->ki_pos); |
1015 | *ppos = kiocb->ki_pos; | 1015 | *ppos = kiocb->ki_pos; |
@@ -1068,7 +1068,7 @@ static ssize_t ll_file_write(struct file *file, const char *buf, size_t count, | |||
1068 | local_iov->iov_len = count; | 1068 | local_iov->iov_len = count; |
1069 | init_sync_kiocb(kiocb, file); | 1069 | init_sync_kiocb(kiocb, file); |
1070 | kiocb->ki_pos = *ppos; | 1070 | kiocb->ki_pos = *ppos; |
1071 | kiocb->ki_left = count; | 1071 | kiocb->ki_nbytes = count; |
1072 | 1072 | ||
1073 | result = ll_file_aio_write(kiocb, local_iov, 1, kiocb->ki_pos); | 1073 | result = ll_file_aio_write(kiocb, local_iov, 1, kiocb->ki_pos); |
1074 | *ppos = kiocb->ki_pos; | 1074 | *ppos = kiocb->ki_pos; |