aboutsummaryrefslogtreecommitdiffstats
path: root/net/rds/rdma.c
diff options
context:
space:
mode:
authorAndy Grover <andy.grover@oracle.com>2010-03-12 19:22:32 -0500
committerAndy Grover <andy.grover@oracle.com>2010-09-08 21:07:31 -0400
commit9e2effba2c16fc3bd47da605116485afe01e0be0 (patch)
treea423d21a3abee4a5979ce13f7627d81e558c32ed /net/rds/rdma.c
parentdb40980fcdb560d7992b0511df16cdd3f7e381f3 (diff)
RDS: Fix BUG_ONs to not fire when in a tasklet
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>
Diffstat (limited to 'net/rds/rdma.c')
-rw-r--r--net/rds/rdma.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/rds/rdma.c b/net/rds/rdma.c
index 75fd13bb631b..3b442d4d64cf 100644
--- a/net/rds/rdma.c
+++ b/net/rds/rdma.c
@@ -440,7 +440,7 @@ void rds_rdma_free_op(struct rds_rdma_op *ro)
440 * is the case for a RDMA_READ which copies from remote 440 * is the case for a RDMA_READ which copies from remote
441 * to local memory */ 441 * to local memory */
442 if (!ro->r_write) { 442 if (!ro->r_write) {
443 BUG_ON(in_interrupt()); 443 BUG_ON(irqs_disabled());
444 set_page_dirty(page); 444 set_page_dirty(page);
445 } 445 }
446 put_page(page); 446 put_page(page);