[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: [dm-devel] [PATCH v2 07/14] pktcdvd: Switch to bio_kmalloc()
- From: Vivek Goyal <vgoyal redhat com>
- To: Kent Overstreet <koverstreet google com>
- Cc: axboe kernel dk, yehuda hq newdream net, dm-devel redhat com, linux-kernel vger kernel org, tj kernel org, linux-bcache vger kernel org, mpatocka redhat com, bharrosh panasas com, linux-fsdevel vger kernel org, sage newdream net, agk redhat com, drbd-dev lists linbit com
- Subject: Re: [dm-devel] [PATCH v2 07/14] pktcdvd: Switch to bio_kmalloc()
- Date: Thu, 24 May 2012 15:42:52 -0400
On Wed, May 23, 2012 at 05:02:44PM -0700, Kent Overstreet wrote:
[..]
> @@ -567,10 +569,13 @@ static struct packet_data *pkt_alloc_packet_data(int frames)
> goto no_pkt;
>
> pkt->frames = frames;
> - pkt->w_bio = pkt_bio_alloc(frames);
> + pkt->w_bio = bio_kmalloc(GFP_KERNEL, frames);
So previously bios allocated were being kfreed by pkt_bio_destructor().
Now where are we doing kfree() on bio being allocated by bio_kmalloc()?
Thanks
Vivek
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]