]> www.infradead.org Git - users/jedix/linux-maple.git/commit
RDS: Do not call set_page_dirty() with irqs off
authorAndy Grover <andy.grover@oracle.com>
Thu, 11 Mar 2010 20:37:05 +0000 (12:37 -0800)
committerMukesh Kacker <mukesh.kacker@oracle.com>
Tue, 7 Jul 2015 23:41:22 +0000 (16:41 -0700)
commit9eac4c3892624d674a9734ab72a2ee6f978a8d29
treed091648646d995c4626986af2da67d727e6645e5
parent050d477bbd2fca07d50121f8fdf2e253854c524d
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>
net/rds/ib_rdma.c
net/rds/rdma.c
net/rds/send.c