[PATCH] NVMe: Add discard support for capable devices
Busch, Keith
keith.busch at intel.com
Tue Nov 6 11:19:58 EST 2012
Yes, though I should have made this patch dependent on the cmdid patch so I could use the right error handling here. I'll submit an update to reflect this and your other comments. Thanks for the review, I very much appreciate the feedback.
> -----Original Message-----
> From: Matthew Wilcox [mailto:willy at linux.intel.com]
> Sent: Tuesday, November 06, 2012 9:15 AM
> To: Busch, Keith
> Cc: linux-nvme at lists.infradead.org
> Subject: Re: [PATCH] NVMe: Add discard support for capable devices
>
> On Tue, Nov 06, 2012 at 11:10:08AM -0500, Matthew Wilcox wrote:
> > Although ... now I'm looking at the failure path in
> > nvme_submit_bio_queue(), isn't it the case that we'll leak cmdids if
> > nvme_map_bio() fails? And in this case? So I think we also need:
> >
> > + free_cmdid:
> > + free_cmdid(nvmeq, cmdid, NULL);
> > free_iod:
> >
> > And then change the 'goto free_iod' to 'goto free_cmdid'.
>
> Never mind; just got to the patch where you fixed this :-)
More information about the Linux-nvme
mailing list