diff options
author | Andy Grover <andy.grover@oracle.com> | 2010-03-13 01:22:32 +0100 |
---|---|---|
committer | Andy Grover <andy.grover@oracle.com> | 2010-09-09 03:07:31 +0200 |
commit | 9e2effba2c16fc3bd47da605116485afe01e0be0 (patch) | |
tree | a423d21a3abee4a5979ce13f7627d81e558c32ed /net/rds/ib_rdma.c | |
parent | net: poll() optimizations (diff) | |
download | linux-9e2effba2c16fc3bd47da605116485afe01e0be0.tar.xz linux-9e2effba2c16fc3bd47da605116485afe01e0be0.zip |
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/ib_rdma.c')
-rw-r--r-- | net/rds/ib_rdma.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/rds/ib_rdma.c b/net/rds/ib_rdma.c index a54cd63f9e35..a92aebcb7fcf 100644 --- a/net/rds/ib_rdma.c +++ b/net/rds/ib_rdma.c @@ -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); } |