Good
> | +++ mm/highmem.c
> | @@ -409,7 +409,9 @@
> | vfrom = kmap(from->bv_page) + from->bv_offset;
> | memcpy(vto, vfrom, to->bv_len);
> | kunmap(from->bv_page);
> | - }
> | + bounced_write++;
> | + } else
> | + bounced_read++;
> | }
> |
> | Of course those are all bounces, not just (or only) swap bounces. Also
> | note that the above is not SMP safe.
>
> Is this the only place that kstat (kernel_stat) counters
> are not SMP safe...?
Haven't looked at the other stats, the i/o stats are protected by the
queue_lock though.
-- Jens Axboe- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/