diff options
author | Andy Grover <andy.grover@oracle.com> | 2010-03-11 08:50:06 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-03-17 00:17:01 -0400 |
commit | 561c7df63e259203515509a7ad075382a42bff0c (patch) | |
tree | 80d3d382ba155d4bced37b716dcac0e31062f2c5 /net/rds/ib_rdma.c | |
parent | 450d06c0208ad195ccd74a7edd11321e316791ad (diff) |
RDS: Do not call set_page_dirty() with irqs off
set_page_dirty() unconditionally re-enables interrupts, so
if we call it with irqs off, they will be on after the call,
and that's bad. This patch moves the call after we've re-enabled
interrupts in send_drop_to(), so it's safe.
Also, add BUG_ONs to let us know if we ever do call set_page_dirty
with interrupts off.
Signed-off-by: Andy Grover <andy.grover@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/rds/ib_rdma.c')
-rw-r--r-- | net/rds/ib_rdma.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/rds/ib_rdma.c b/net/rds/ib_rdma.c index 65e668defe42..cfb1d904ed00 100644 --- a/net/rds/ib_rdma.c +++ b/net/rds/ib_rdma.c | |||
@@ -440,6 +440,7 @@ static void __rds_ib_teardown_mr(struct rds_ib_mr *ibmr) | |||
440 | 440 | ||
441 | /* FIXME we need a way to tell a r/w MR | 441 | /* FIXME we need a way to tell a r/w MR |
442 | * from a r/o MR */ | 442 | * from a r/o MR */ |
443 | BUG_ON(in_interrupt()); | ||
443 | set_page_dirty(page); | 444 | set_page_dirty(page); |
444 | put_page(page); | 445 | put_page(page); |
445 | } | 446 | } |