Whamcloud - gitweb
LU-6426 lustre: remove EIOCBRETRY handling 07/14507/2
authorJames Simmons <uja.ornl@yahoo.com>
Mon, 20 Apr 2015 15:15:38 +0000 (11:15 -0400)
committerOleg Drokin <oleg.drokin@intel.com>
Fri, 8 May 2015 15:07:30 +0000 (15:07 +0000)
With linux commit 41003a7bcfed1255032e1e7c7b487e505b22e298
AIO retry handling was removed due to it being buggy and no
one using it, including lustre. Since this is the case
remove EIOCBRETRY since it no longer in the kernel starting
with version 3.18.

Change-Id: Icdc2de3fe252a6315914b906ef29c80343aa93e8
Signed-off-by: James Simmons <uja.ornl@yahoo.com>
Reviewed-on: http://review.whamcloud.com/14507
Reviewed-by: Bob Glossman <bob.glossman@intel.com>
Tested-by: Jenkins
Reviewed-by: Dmitry Eremin <dmitry.eremin@intel.com>
Reviewed-by: Blake Caldwell <blakec@ornl.gov>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Thomas Stibor <thomas@stibor.net>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/include/lustre/lustre_errno.h
lustre/ptlrpc/errno.c

index 74859f6..fe9ccd2 100644 (file)
                                           complete before timeout */
 #define LUSTRE_EIOCBQUEUED     529     /* iocb queued, will get completion
                                           event */
                                           complete before timeout */
 #define LUSTRE_EIOCBQUEUED     529     /* iocb queued, will get completion
                                           event */
-#define LUSTRE_EIOCBRETRY      530     /* iocb queued, will trigger a retry */
 
 /*
  * Translations are optimized away on x86.  Host errnos that shouldn't be put
 
 /*
  * Translations are optimized away on x86.  Host errnos that shouldn't be put
index 50b89aa..96f6f75 100644 (file)
@@ -185,8 +185,7 @@ static int lustre_errno_hton_mapping[] = {
        [ESERVERFAULT]          = LUSTRE_ESERVERFAULT,
        [EBADTYPE]              = LUSTRE_EBADTYPE,
        [EJUKEBOX]              = LUSTRE_EJUKEBOX,
        [ESERVERFAULT]          = LUSTRE_ESERVERFAULT,
        [EBADTYPE]              = LUSTRE_EBADTYPE,
        [EJUKEBOX]              = LUSTRE_EJUKEBOX,
-       [EIOCBQUEUED]           = LUSTRE_EIOCBQUEUED,
-       [EIOCBRETRY]            = LUSTRE_EIOCBRETRY
+       [EIOCBQUEUED]           = LUSTRE_EIOCBQUEUED
 };
 
 static int lustre_errno_ntoh_mapping[] = {
 };
 
 static int lustre_errno_ntoh_mapping[] = {
@@ -332,8 +331,7 @@ static int lustre_errno_ntoh_mapping[] = {
        [LUSTRE_ESERVERFAULT]           = ESERVERFAULT,
        [LUSTRE_EBADTYPE]               = EBADTYPE,
        [LUSTRE_EJUKEBOX]               = EJUKEBOX,
        [LUSTRE_ESERVERFAULT]           = ESERVERFAULT,
        [LUSTRE_EBADTYPE]               = EBADTYPE,
        [LUSTRE_EJUKEBOX]               = EJUKEBOX,
-       [LUSTRE_EIOCBQUEUED]            = EIOCBQUEUED,
-       [LUSTRE_EIOCBRETRY]             = EIOCBRETRY
+       [LUSTRE_EIOCBQUEUED]            = EIOCBQUEUED
 };
 
 unsigned int lustre_errno_hton(unsigned int h)
 };
 
 unsigned int lustre_errno_hton(unsigned int h)