Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755498AbbKEULw (ORCPT ); Thu, 5 Nov 2015 15:11:52 -0500 Received: from mail-io0-f181.google.com ([209.85.223.181]:36286 "EHLO mail-io0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752533AbbKEULv (ORCPT ); Thu, 5 Nov 2015 15:11:51 -0500 Subject: Re: [PATCH] brd: Refuse improperly aligned discard requests To: Jan Kara References: <1446653619-22880-1-git-send-email-jack@suse.com> Cc: LKML , linux-fsdevel@vger.kernel.org, Christoph Hellwig From: Jens Axboe Message-ID: <563BB804.8020003@kernel.dk> Date: Thu, 5 Nov 2015 13:11:48 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: <1446653619-22880-1-git-send-email-jack@suse.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 523 Lines: 15 On 11/04/2015 09:13 AM, Jan Kara wrote: > Currently when improperly aligned discard request is submitted, we just > silently discard more / less data which results in filesystem corruption > in some cases. Refuse such misaligned requests. Applied, thanks Jan. -- Jens Axboe -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/