From: Kent Overstreet Date: Thu, 9 May 2013 22:03:42 +0000 (-0700) Subject: aio: Kill aio_rw_vect_retry() X-Git-Tag: accepted/tizen/unified/20211126.111914~15^2~15 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=619b261fe78224d85ac22b9efd576ecaa807cd3e;p=platform%2Fkernel%2Flinux-tizen-modules-source.git aio: Kill aio_rw_vect_retry() This code doesn't serve any purpose anymore, since the aio retry infrastructure has been removed. This change should be safe because aio_read/write are also used for synchronous IO, and called from do_sync_read()/do_sync_write() - and there's no looping done in the sync case (the read and write syscalls). Change-Id: I29e2981ea74ef69bb7803fb138d8a5f7e58eeb7b Signed-off-by: Kent Overstreet Cc: Zach Brown Cc: Felipe Balbi Cc: Greg Kroah-Hartman Cc: Mark Fasheh Cc: Joel Becker Cc: Rusty Russell Cc: Jens Axboe Cc: Asai Thambi S P Cc: Selvan Mani Cc: Sam Bradshaw Cc: Jeff Moyer Cc: Al Viro Cc: Benjamin LaHaise Signed-off-by: Benjamin LaHaise --- diff --git a/drivers/staging/android/logger.c b/drivers/staging/android/logger.c index a8c3444..d42f578 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, header.sec = now.tv_sec; header.nsec = now.tv_nsec; header.euid = current_euid(); - header.len = min_t(size_t, iocb->ki_left, LOGGER_ENTRY_MAX_PAYLOAD); + header.len = min_t(size_t, iocb->ki_nbytes, LOGGER_ENTRY_MAX_PAYLOAD); header.hdr_size = sizeof(struct logger_entry); /* null writes succeed, return zero */