From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoph Hellwig Subject: Re: [PATCH v2 1/5] block: reinstate early return of -EOPNOTSUPP from blkdev_issue_discard Date: Fri, 6 May 2016 18:04:07 +0200 Message-ID: <20160506160407.GA7397@lst.de> References: <1462463665-85312-1-git-send-email-snitzer@redhat.com> <1462463665-85312-2-git-send-email-snitzer@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <1462463665-85312-2-git-send-email-snitzer@redhat.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dm-devel-bounces@redhat.com Errors-To: dm-devel-bounces@redhat.com To: Mike Snitzer Cc: Jens Axboe , linux-block@vger.kernel.org, dm-devel@redhat.com, Christoph Hellwig List-Id: dm-devel.ids I don't really agree with the rationale, but I'm fine with reverting to it this late in the cycle, so: Acked-by: Christoph Hellwig But looking at your slightly convoluted handling of the errors in dm-think, what do you think about splitting out these early checks into a separate helper, at which point __blkdev_issue_discard doesn't need a return value any more?