Re: [PATCH 2/4] block: partition: convert percpu ref

2015-07-16 Thread Tejun Heo
On Thu, Jul 16, 2015 at 11:16:45AM +0800, Ming Lei wrote: > Percpu refcount is the perfect match for partition's case, > and the conversion is quite straight. > > With the convertion, one pair of atomic inc/dec can be saved > for accounting block I/O, which is run in hot path of block I/O. > >

Re: [PATCH 2/4] block: partition: convert percpu ref

2015-07-16 Thread Tejun Heo
On Thu, Jul 16, 2015 at 11:16:45AM +0800, Ming Lei wrote: Percpu refcount is the perfect match for partition's case, and the conversion is quite straight. With the convertion, one pair of atomic inc/dec can be saved for accounting block I/O, which is run in hot path of block I/O.

[PATCH 2/4] block: partition: convert percpu ref

2015-07-15 Thread Ming Lei
Percpu refcount is the perfect match for partition's case, and the conversion is quite straight. With the convertion, one pair of atomic inc/dec can be saved for accounting block I/O, which is run in hot path of block I/O. Signed-off-by: Ming Lei --- block/genhd.c | 6 +-

[PATCH 2/4] block: partition: convert percpu ref

2015-07-15 Thread Ming Lei
Percpu refcount is the perfect match for partition's case, and the conversion is quite straight. With the convertion, one pair of atomic inc/dec can be saved for accounting block I/O, which is run in hot path of block I/O. Signed-off-by: Ming Lei tom.leim...@gmail.com --- block/genhd.c