From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tejun Heo Subject: Re: [PATCH v6 05/13] block: Kill bi_destructor Date: Wed, 22 Aug 2012 13:00:32 -0700 Message-ID: <20120822200032.GH19212@google.com> References: <1345655050-28199-1-git-send-email-koverstreet@google.com> <1345655050-28199-6-git-send-email-koverstreet@google.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <1345655050-28199-6-git-send-email-koverstreet-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org> Sender: linux-bcache-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Kent Overstreet Cc: linux-bcache-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, dm-devel-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org, vgoyal-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org, mpatocka-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org, bharrosh-C4P08NqkoRlBDgjK7y7TUQ@public.gmane.org, Jens Axboe List-Id: dm-devel.ids Hello, On Wed, Aug 22, 2012 at 10:04:02AM -0700, Kent Overstreet wrote: > +#define BIO_KMALLOC_POOL NULL I would much prefer just doing if (!bs) { /* do kmalloc/kfree thing */ } else { /* do bioset thing */ } NULL @bs indicating no bioset is perfectly natural and so is using generic memory allocation in the absense of bioset. I don't see any value in defining Bio_KMALLOC_POOL to be NULL. Thanks. -- tejun