Skip to content

Commit 6ebcc3f

Browse files
committed
Orangefs: added a couple of WARN_ONs, perhaps just temporarily.
Signed-off-by: Mike Marshall <hubcap@omnibond.com>
1 parent 237f828 commit 6ebcc3f

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

‎fs/orangefs/file.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,7 @@ static ssize_t wait_for_direct_io(enum ORANGEFS_io_type type, struct inode *inod
250250
* put error codes in downcall so that handle_io_error()
251251
* preserves it properly
252252
*/
253+
WARN_ON(!op_state_serviced(new_op));
253254
new_op->downcall.status = ret;
254255
handle_io_error();
255256
goto out;

‎fs/orangefs/waitqueue.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,7 @@ int service_operation(struct orangefs_kernel_op_s *op,
205205

206206
/* op uses shared memory */
207207
if (orangefs_get_bufmap_init() == 0) {
208+
WARN_ON(1);
208209
/*
209210
* This operation uses the shared memory system AND
210211
* the system is not yet ready. This situation occurs

0 commit comments

Comments
 (0)