Skip to content

Commit

Permalink
RDS: Fix BUG_ONs to not fire when in a tasklet
Browse files Browse the repository at this point in the history
in_interrupt() is true in softirqs. The BUG_ONs are supposed
to check for if irqs are disabled, so we should use
BUG_ON(irqs_disabled()) instead, duh.

Signed-off-by: Andy Grover <andy.grover@oracle.com>
  • Loading branch information
Andy Grover committed Sep 9, 2010
1 parent db40980 commit 9e2effb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion net/rds/ib_rdma.c
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ static void __rds_ib_teardown_mr(struct rds_ib_mr *ibmr)

/* FIXME we need a way to tell a r/w MR
* from a r/o MR */
BUG_ON(in_interrupt());
BUG_ON(irqs_disabled());
set_page_dirty(page);
put_page(page);
}
Expand Down
2 changes: 1 addition & 1 deletion net/rds/rdma.c
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ void rds_rdma_free_op(struct rds_rdma_op *ro)
* is the case for a RDMA_READ which copies from remote
* to local memory */
if (!ro->r_write) {
BUG_ON(in_interrupt());
BUG_ON(irqs_disabled());
set_page_dirty(page);
}
put_page(page);
Expand Down

0 comments on commit 9e2effb

Please sign in to comment.