From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lithops.sigma-star.at (lithops.sigma-star.at [195.201.40.130]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AB7906FB6; Thu, 28 Dec 2023 11:10:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=nod.at Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=nod.at Received: from localhost (localhost [127.0.0.1]) by lithops.sigma-star.at (Postfix) with ESMTP id 991F66343B3D; Thu, 28 Dec 2023 12:10:12 +0100 (CET) Received: from lithops.sigma-star.at ([127.0.0.1]) by localhost (lithops.sigma-star.at [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id Ha9HAdblf5Fu; Thu, 28 Dec 2023 12:10:12 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by lithops.sigma-star.at (Postfix) with ESMTP id 0F9C76343B4E; Thu, 28 Dec 2023 12:10:12 +0100 (CET) Received: from lithops.sigma-star.at ([127.0.0.1]) by localhost (lithops.sigma-star.at [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id jBjqUGApe4hb; Thu, 28 Dec 2023 12:10:11 +0100 (CET) Received: from lithops.sigma-star.at (lithops.sigma-star.at [195.201.40.130]) by lithops.sigma-star.at (Postfix) with ESMTP id CF83F6343B3D; Thu, 28 Dec 2023 12:10:11 +0100 (CET) Date: Thu, 28 Dec 2023 12:10:11 +0100 (CET) From: Richard Weinberger To: hch Cc: Jens Axboe , anton ivanov , Josef Bacik , Minchan Kim , senozhatsky , Coly Li , Miquel Raynal , Vignesh Raghavendra , linux-um , linux-block , nbd@other.debian.org, linux-bcache , linux-mtd Message-ID: <1544995699.172154.1703761811676.JavaMail.zimbra@nod.at> In-Reply-To: <20231228075545.362768-5-hch@lst.de> References: <20231228075545.362768-1-hch@lst.de> <20231228075545.362768-5-hch@lst.de> Subject: Re: [PATCH 4/9] ubd: use the default discard granularity Precedence: bulk X-Mailing-List: linux-bcache@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Mailer: Zimbra 8.8.12_GA_3807 (ZimbraWebClient - FF97 (Linux)/8.8.12_GA_3809) Thread-Topic: use the default discard granularity Thread-Index: kk75ae1xWs0+YtjBcgdOSaDYaxww3w== ----- Urspr=C3=BCngliche Mail ----- > Von: "hch" > An: "Jens Axboe" > CC: "richard" , "anton ivanov" , "Josef Bacik" , > "Minchan Kim" , "senozhatsky" , "Coly Li" , "Miquel > Raynal" , "Vignesh Raghavendra" , "linux-um" > , "linux-block" , nbd@other.debian.org, "linux-bcache" > , "linux-mtd" > Gesendet: Donnerstag, 28. Dezember 2023 08:55:40 > Betreff: [PATCH 4/9] ubd: use the default discard granularity > The discard granularity now defaults to a single sector, so don't set > that value explicitly. >=20 > Signed-off-by: Christoph Hellwig > --- > arch/um/drivers/ubd_kern.c | 1 - > 1 file changed, 1 deletion(-) >=20 > diff --git a/arch/um/drivers/ubd_kern.c b/arch/um/drivers/ubd_kern.c > index 50206feac577d5..92ee2697ff3984 100644 > --- a/arch/um/drivers/ubd_kern.c > +++ b/arch/um/drivers/ubd_kern.c > @@ -798,7 +798,6 @@ static int ubd_open_dev(struct ubd *ubd_dev) > =09=09ubd_dev->cow.fd =3D err; > =09} > =09if (ubd_dev->no_trim =3D=3D 0) { > -=09=09ubd_dev->queue->limits.discard_granularity =3D SECTOR_SIZE; > =09=09blk_queue_max_discard_sectors(ubd_dev->queue, UBD_MAX_REQUEST); > =09=09blk_queue_max_write_zeroes_sectors(ubd_dev->queue, UBD_MAX_REQUEST)= ; > =09} Acked-by: Richard Weinberger Thanks, //richard