aboutsummaryrefslogtreecommitdiffstats
path: root/block/blk-iopoll.c
diff options
context:
space:
mode:
Diffstat (limited to 'block/blk-iopoll.c')
-rw-r--r--block/blk-iopoll.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/block/blk-iopoll.c b/block/blk-iopoll.c
index d828b44a404b..0736729d6494 100644
--- a/block/blk-iopoll.c
+++ b/block/blk-iopoll.c
@@ -49,7 +49,7 @@ EXPORT_SYMBOL(blk_iopoll_sched);
49void __blk_iopoll_complete(struct blk_iopoll *iop) 49void __blk_iopoll_complete(struct blk_iopoll *iop)
50{ 50{
51 list_del(&iop->list); 51 list_del(&iop->list);
52 smp_mb__before_clear_bit(); 52 smp_mb__before_atomic();
53 clear_bit_unlock(IOPOLL_F_SCHED, &iop->state); 53 clear_bit_unlock(IOPOLL_F_SCHED, &iop->state);
54} 54}
55EXPORT_SYMBOL(__blk_iopoll_complete); 55EXPORT_SYMBOL(__blk_iopoll_complete);
@@ -161,7 +161,7 @@ EXPORT_SYMBOL(blk_iopoll_disable);
161void blk_iopoll_enable(struct blk_iopoll *iop) 161void blk_iopoll_enable(struct blk_iopoll *iop)
162{ 162{
163 BUG_ON(!test_bit(IOPOLL_F_SCHED, &iop->state)); 163 BUG_ON(!test_bit(IOPOLL_F_SCHED, &iop->state));
164 smp_mb__before_clear_bit(); 164 smp_mb__before_atomic();
165 clear_bit_unlock(IOPOLL_F_SCHED, &iop->state); 165 clear_bit_unlock(IOPOLL_F_SCHED, &iop->state);
166} 166}
167EXPORT_SYMBOL(blk_iopoll_enable); 167EXPORT_SYMBOL(blk_iopoll_enable);