From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932507AbcFOCP0 (ORCPT ); Tue, 14 Jun 2016 22:15:26 -0400 Received: from aserp1040.oracle.com ([141.146.126.69]:30620 "EHLO aserp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932241AbcFOCPY (ORCPT ); Tue, 14 Jun 2016 22:15:24 -0400 To: Christoph Hellwig Cc: "Martin K. Petersen" , Shaohua Li , linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, axboe@fb.com, sitsofe@yahoo.com, snitzer@redhat.com, Kernel-team@fb.com Subject: Re: [PATCH V2] block: correctly fallback for zeroout From: "Martin K. Petersen" Organization: Oracle Corporation References: <20160606223357.GA52883@shli-mbp.local> <20160610025435.GA48899@shli-mbp.local> <20160613082001.GA27508@infradead.org> Date: Tue, 14 Jun 2016 22:14:50 -0400 In-Reply-To: <20160613082001.GA27508@infradead.org> (Christoph Hellwig's message of "Mon, 13 Jun 2016 01:20:01 -0700") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Source-IP: userv0021.oracle.com [156.151.31.71] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org >>>>> "Christoph" == Christoph Hellwig writes: Christoph> We can move the sanity checks out. Or even better get rid of Christoph> the stupid behavior of ignoring the late -EOPNOTSUPP in this Christoph> low level helper and instead leaving it to the caller(s) that Christoph> care. It definitely should be a caller decision whether to ignore the return value or not. >> I am OK with your patch as a stable fix but this really needs to be >> fixed up properly. Christoph> And I'd much prefer to get this right now. It's not like Christoph> this is recently introduced behavior. Unfortunately there are quite a few callers of blkdev_issue_discard() these days. Some of them ignore the return value but not all of them. I'm concerned about causing all sorts of breakage if we suddenly start returning errors various places in the stable trees. -- Martin K. Petersen Oracle Linux Engineering