Re: [PATCH v4 2/2] Staging: zram: Fix decrement of variable by calling bdput()

2013-10-25 Thread Minchan Kim
Hey Rashika, And please Cc LKML in next. Thanks! On Fri, Oct 25, 2013 at 7:13 PM, Minchan Kim wrote: > On Tue, Oct 22, 2013 at 07:04:37PM +0530, Rashika Kheria wrote: >> As suggested by Jerome Marchand "The code in reset_store get the block device >> (bdget_disk()) but it does not put it (bdpu

Re: [PATCH v4 2/2] Staging: zram: Fix decrement of variable by calling bdput()

2013-10-25 Thread Minchan Kim
On Tue, Oct 22, 2013 at 07:04:37PM +0530, Rashika Kheria wrote: > As suggested by Jerome Marchand "The code in reset_store get the block device > (bdget_disk()) but it does not put it (bdput()) when it's done using it. > The usage count is therefor incremented but never decremented." > > Hence, th

[PATCH v4 2/2] Staging: zram: Fix decrement of variable by calling bdput()

2013-10-22 Thread Rashika Kheria
As suggested by Jerome Marchand "The code in reset_store get the block device (bdget_disk()) but it does not put it (bdput()) when it's done using it. The usage count is therefor incremented but never decremented." Hence, this patch introduces a call to bdput() to decrement the variable after usa