Re: [PATCH 3/8] zram: factor out device reset from reset_store()

2015-03-04 Thread Minchan Kim
On Tue, Mar 03, 2015 at 09:49:45PM +0900, Sergey Senozhatsky wrote: > Device reset currently consists of two steps: > a) holding ->bd_mutex we ensure that there are no device users > (bdev->bd_openers) > > b) and internal part (executed under bdev->bd_mutex and partially > under zram->init_lock)

Re: [PATCH 3/8] zram: factor out device reset from reset_store()

2015-03-04 Thread Minchan Kim
On Tue, Mar 03, 2015 at 09:49:45PM +0900, Sergey Senozhatsky wrote: Device reset currently consists of two steps: a) holding -bd_mutex we ensure that there are no device users (bdev-bd_openers) b) and internal part (executed under bdev-bd_mutex and partially under zram-init_lock) that

[PATCH 3/8] zram: factor out device reset from reset_store()

2015-03-03 Thread Sergey Senozhatsky
Device reset currently consists of two steps: a) holding ->bd_mutex we ensure that there are no device users (bdev->bd_openers) b) and internal part (executed under bdev->bd_mutex and partially under zram->init_lock) that resets the device - frees allocated memory and returns the device back to

[PATCH 3/8] zram: factor out device reset from reset_store()

2015-03-03 Thread Sergey Senozhatsky
Device reset currently consists of two steps: a) holding -bd_mutex we ensure that there are no device users (bdev-bd_openers) b) and internal part (executed under bdev-bd_mutex and partially under zram-init_lock) that resets the device - frees allocated memory and returns the device back to its

[PATCH 3/8] zram: factor out device reset from reset_store()

2015-02-26 Thread Sergey Senozhatsky
Device reset currently consists of two steps: a) holding ->bd_mutex we ensure that there are no device users (bdev->bd_openers) b) and internal part (executed under bdev->bd_mutex and partially under zram->init_lock) that resets the device - frees allocated memory and returns the device back to

[PATCH 3/8] zram: factor out device reset from reset_store()

2015-02-26 Thread Sergey Senozhatsky
Device reset currently consists of two steps: a) holding -bd_mutex we ensure that there are no device users (bdev-bd_openers) b) and internal part (executed under bdev-bd_mutex and partially under zram-init_lock) that resets the device - frees allocated memory and returns the device back to its