]> git.baikalelectronics.ru Git - kernel.git/commit
RDS: Do not call set_page_dirty() with irqs off
authorAndy Grover <andy.grover@oracle.com>
Thu, 11 Mar 2010 13:50:06 +0000 (13:50 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 17 Mar 2010 04:17:01 +0000 (21:17 -0700)
commit33e1949bc4001190c7f1d563d02017e27b777769
tree80d3d382ba155d4bced37b716dcac0e31062f2c5
parent49bb8d55cbeb6be0fd370332db3af467abc216dd
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>
net/rds/ib_rdma.c
net/rds/rdma.c
net/rds/send.c