Re: [PATCH] zram: check bd_openers instead bd_holders

From: Sergey Senozhatsky
Date: Mon Feb 02 2015 - 23:53:54 EST


On (02/03/15 13:50), Minchan Kim wrote:
> Signed-off-by: Minchan Kim <minchan@xxxxxxxxxx>

Acked-by: Sergey Senozhatsky <sergey.senozhatsky@xxxxxxxxx>

> ---
> drivers/block/zram/zram_drv.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/block/zram/zram_drv.c b/drivers/block/zram/zram_drv.c
> index a32069f98afa..cc0e6a3ddb4f 100644
> --- a/drivers/block/zram/zram_drv.c
> +++ b/drivers/block/zram/zram_drv.c
> @@ -811,7 +811,7 @@ static ssize_t reset_store(struct device *dev,
>
> mutex_lock(&bdev->bd_mutex);
> /* Do not reset an active device! */
> - if (bdev->bd_holders) {
> + if (bdev->bd_openers) {
> ret = -EBUSY;
> goto out;
> }
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/