From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pl1-f196.google.com ([209.85.214.196]:33363 "EHLO mail-pl1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726712AbeLAERs (ORCPT ); Fri, 30 Nov 2018 23:17:48 -0500 Message-ID: <1543597666.4347.1.camel@acm.org> Subject: Re: [PATCH 01/27] aio: fix failure to put the file pointer From: Bart Van Assche To: Jens Axboe , linux-block@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-aio@kvack.org Cc: hch@lst.de Date: Fri, 30 Nov 2018 09:07:46 -0800 In-Reply-To: <20181130165646.27341-2-axboe@kernel.dk> References: <20181130165646.27341-1-axboe@kernel.dk> <20181130165646.27341-2-axboe@kernel.dk> Content-Type: text/plain; charset="UTF-7" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Fri, 2018-11-30 at 09:56 -0700, Jens Axboe wrote: +AD4 If the ioprio capability check fails, we return without putting +AD4 the file pointer. +AD4 +AD4 Fixes: d9a08a9e616b (+ACI-fs: Add aio iopriority support+ACI) +AD4 Reviewed-by: Johannes Thumshirn +ADw-jthumshirn+AEA-suse.de+AD4 +AD4 Reviewed-by: Christoph Hellwig +ADw-hch+AEA-lst.de+AD4 +AD4 Signed-off-by: Jens Axboe +ADw-axboe+AEA-kernel.dk+AD4 +AD4 --- +AD4 fs/aio.c +AHw 1 +- +AD4 1 file changed, 1 insertion(+-) +AD4 +AD4 diff --git a/fs/aio.c b/fs/aio.c +AD4 index b984918be4b7..205390c0c1bb 100644 +AD4 --- a/fs/aio.c +AD4 +-+-+- b/fs/aio.c +AD4 +AEAAQA -1436,6 +-1436,7 +AEAAQA static int aio+AF8-prep+AF8-rw(struct kiocb +ACo-req, struct iocb +ACo-iocb) +AD4 ret +AD0 ioprio+AF8-check+AF8-cap(iocb-+AD4-aio+AF8-reqprio)+ADs +AD4 if (ret) +AHs +AD4 pr+AF8-debug(+ACI-aio ioprio check cap error: +ACU-d+AFw-n+ACI, ret)+ADs +AD4 +- fput(req-+AD4-ki+AF8-filp)+ADs +AD4 return ret+ADs +AD4 +AH0 Since this patch fixes a bug that was introduced in kernel v4.18, does this patch need a +ACI-Cc: stable+ACI tag? Thanks, Bart.