All of lore.kernel.org
 help / color / mirror / Atom feed
* [Drbd-dev] [patch 4/4] drivers/block/drbd/drbd_main.c: fix error path
@ 2010-10-27 19:43 akpm
  2010-10-28  8:22 ` Philipp Reisner
  0 siblings, 1 reply; 3+ messages in thread
From: akpm @ 2010-10-27 19:43 UTC (permalink / raw)
  To: axboe; +Cc: nikai, akpm, philipp.reisner, drbd-dev

From: Nicolas Kaiser <nikai@nikai.net>

Failure to create drbd_ee_mempool appears not to get checked.  Looks like
a copy-and-paste problem to me.

Signed-off-by: Nicolas Kaiser <nikai@nikai.net>
Cc: Lars Ellenberg <drbd-dev@lists.linbit.com>
Cc: Philipp Reisner <philipp.reisner@linbit.com>
Cc: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 drivers/block/drbd/drbd_main.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff -puN drivers/block/drbd/drbd_main.c~drivers-block-drbd-drbd_mainc-fix-error-path drivers/block/drbd/drbd_main.c
--- a/drivers/block/drbd/drbd_main.c~drivers-block-drbd-drbd_mainc-fix-error-path
+++ a/drivers/block/drbd/drbd_main.c
@@ -2982,7 +2982,7 @@ static int drbd_create_mempools(void)
 
 	drbd_ee_mempool = mempool_create(number,
 		mempool_alloc_slab, mempool_free_slab, drbd_ee_cache);
-	if (drbd_request_mempool == NULL)
+	if (drbd_ee_mempool == NULL)
 		goto Enomem;
 
 	/* drbd's page pool */
_

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Drbd-dev] [patch 4/4] drivers/block/drbd/drbd_main.c: fix error path
  2010-10-27 19:43 [Drbd-dev] [patch 4/4] drivers/block/drbd/drbd_main.c: fix error path akpm
@ 2010-10-28  8:22 ` Philipp Reisner
  2010-10-28 12:14   ` Jens Axboe
  0 siblings, 1 reply; 3+ messages in thread
From: Philipp Reisner @ 2010-10-28  8:22 UTC (permalink / raw)
  To: axboe; +Cc: nikai, akpm, drbd-dev

Hi Jens,

The patch is obviously correct.
Should I pick it up (and send you a pull req (later))? 
Are you going to pick it up directly?

Best,
 Phil

> From: Nicolas Kaiser <nikai@nikai.net>
> 
> Failure to create drbd_ee_mempool appears not to get checked.  Looks like
> a copy-and-paste problem to me.
> 
> Signed-off-by: Nicolas Kaiser <nikai@nikai.net>
> Cc: Lars Ellenberg <drbd-dev@lists.linbit.com>
> Cc: Philipp Reisner <philipp.reisner@linbit.com>
> Cc: Jens Axboe <axboe@kernel.dk>
> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
> ---
> 
>  drivers/block/drbd/drbd_main.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff -puN
> drivers/block/drbd/drbd_main.c~drivers-block-drbd-drbd_mainc-fix-error-pat
> h drivers/block/drbd/drbd_main.c ---
> a/drivers/block/drbd/drbd_main.c~drivers-block-drbd-drbd_mainc-fix-error-p
> ath +++ a/drivers/block/drbd/drbd_main.c
> @@ -2982,7 +2982,7 @@ static int drbd_create_mempools(void)
> 
>  	drbd_ee_mempool = mempool_create(number,
>  		mempool_alloc_slab, mempool_free_slab, drbd_ee_cache);
> -	if (drbd_request_mempool == NULL)
> +	if (drbd_ee_mempool == NULL)
>  		goto Enomem;
> 
>  	/* drbd's page pool */
> _


-- 
: Dipl-Ing Philipp Reisner
: LINBIT | Your Way to High Availability
: Tel: +43-1-8178292-50, Fax: +43-1-8178292-82
: http://www.linbit.com

DRBD(R) and LINBIT(R) are registered trademarks of LINBIT, Austria.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Drbd-dev] [patch 4/4] drivers/block/drbd/drbd_main.c: fix error path
  2010-10-28  8:22 ` Philipp Reisner
@ 2010-10-28 12:14   ` Jens Axboe
  0 siblings, 0 replies; 3+ messages in thread
From: Jens Axboe @ 2010-10-28 12:14 UTC (permalink / raw)
  To: Philipp Reisner; +Cc: nikai, akpm, drbd-dev

On 2010-10-28 02:22, Philipp Reisner wrote:
> Hi Jens,
> 
> The patch is obviously correct.
> Should I pick it up (and send you a pull req (later))? 
> Are you going to pick it up directly?

I am merging it now.

-- 
Jens Axboe


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-10-28 12:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-27 19:43 [Drbd-dev] [patch 4/4] drivers/block/drbd/drbd_main.c: fix error path akpm
2010-10-28  8:22 ` Philipp Reisner
2010-10-28 12:14   ` Jens Axboe

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.