Whamcloud - gitweb
b=21760 start bulk unregistering at the same time as reply unlink
authorJohann Lombardi <johann@sun.com>
Thu, 25 Nov 2010 17:21:16 +0000 (18:21 +0100)
committerJohann Lombardi <johann.lombardi@oracle.com>
Thu, 25 Nov 2010 17:21:16 +0000 (18:21 +0100)
i=vitaly
i=oleg

lustre/ChangeLog
lustre/ptlrpc/client.c

index 08b5c43..57c7c86 100644 (file)
@@ -12,6 +12,11 @@ xxxx-xx-xx Oracle, Inc.
        * The async journal commit feature (bug 19128) and the cancel
          lock before replay feature (bug 16774) are disabled by default.
 
+Severity   : normal
+Bugzilla   : 21760
+Description: apps stuck in ptlrpc_check_set() during direct I/O
+Details    : start async bulk unregistering at the same time at reply unlink
+
 -------------------------------------------------------------------------------
 
 2010-10-29 Oracle, Inc.
index 82c46e7..9386396 100644 (file)
@@ -1426,8 +1426,11 @@ int ptlrpc_check_set(struct ptlrpc_request_set *set)
 
                 /* This moves to "unregistering" phase we need to wait for
                  * reply unlink. */
-                if (!unregistered && !ptlrpc_unregister_reply(req, 1))
+                if (!unregistered && !ptlrpc_unregister_reply(req, 1)) {
+                        /** start async bulk unlink too */
+                        ptlrpc_unregister_bulk(req, 1);
                         continue;
+                }
 
                 if (!ptlrpc_unregister_bulk(req, 1))
                         continue;