Whamcloud - gitweb
LU-3409 llite: silence lockdep warning in ll_md_blocking_ast
[fs/lustre-release.git] / lustre / llite / lloop.c
index b9795e2..f94a7ca 100644 (file)
@@ -27,7 +27,7 @@
  * Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
  * Use is subject to license terms.
  *
- * Copyright (c) 2011, Whamcloud, Inc.
+ * Copyright (c) 2011, 2013, Intel Corporation.
  */
 /*
  * This file is part of Lustre, http://www.lustre.org/
 #include <lustre_lite.h>
 #include "llite_internal.h"
 
-#define LLOOP_MAX_SEGMENTS        PTLRPC_MAX_BRW_PAGES
+#define LLOOP_MAX_SEGMENTS        LNET_MAX_IOV
 
 /* Possible states of device */
 enum {
@@ -248,7 +248,7 @@ static int do_bio_lustrebacked(struct lloop_device *lo, struct bio *head)
         * Unfortunately this is NOT easy to fix.
         * Thoughts on solution:
         * 0. Define a reserved pool for cl_pages, which could be a list of
-        *    pre-allocated cl_pages from cl_page_kmem;
+        *    pre-allocated cl_pages;
         * 1. Define a new operation in cl_object_operations{}, says clo_depth,
         *    which measures how many layers for this lustre object. Generally
         *    speaking, the depth would be 2, one for llite, and one for lovsub.