Browse Source

Orangefs: added a couple of WARN_ONs, perhaps just temporarily.

Signed-off-by: Mike Marshall <hubcap@omnibond.com>
Mike Marshall 9 years ago
parent
commit
6ebcc3fcda
2 changed files with 2 additions and 0 deletions
  1. 1 0
      fs/orangefs/file.c
  2. 1 0
      fs/orangefs/waitqueue.c

+ 1 - 0
fs/orangefs/file.c

@@ -250,6 +250,7 @@ populate_shared_memory:
 			 * put error codes in downcall so that handle_io_error()
 			 * preserves it properly
 			 */
+			WARN_ON(!op_state_serviced(new_op));
 			new_op->downcall.status = ret;
 			handle_io_error();
 			goto out;

+ 1 - 0
fs/orangefs/waitqueue.c

@@ -205,6 +205,7 @@ retry_servicing:
 
 		/* op uses shared memory */
 		if (orangefs_get_bufmap_init() == 0) {
+			WARN_ON(1);
 			/*
 			 * This operation uses the shared memory system AND
 			 * the system is not yet ready. This situation occurs