Re: [dm-devel] [PATCH v2 3/4] brd: enable discard

2023-07-19 Thread Mikulas Patocka
On Mon, 10 Jul 2023, Jens Axboe wrote: > When a series is posted and reviewers comment on required changes, I > always wait for a respin of that series with those addressed. That > didn't happen, so this didn't get applied. > > -- > Jens Axboe Hi I updated the brd discard patches so that

Re: [dm-devel] [PATCH v2 3/4] brd: enable discard

2023-07-13 Thread Christoph Hellwig
On Mon, Jul 10, 2023 at 01:05:00PM -0600, Jens Axboe wrote: > When a series is posted and reviewers comment on required changes, I > always wait for a respin of that series with those addressed. That > didn't happen, so this didn't get applied. ... independent of that any software that assumes

Re: [dm-devel] [PATCH v2 3/4] brd: enable discard

2023-07-11 Thread Li Nan
Hi, Mikulas The lack of discard in ramdisk can cause some issues related to dm. see: https://lore.kernel.org/all/20220228141354.1091687-1-luomen...@huawei.com/ I noticed that your patch series has already supported discard for brd. But this patch series has not been applied to mainline at

Re: [dm-devel] [PATCH v2 3/4] brd: enable discard

2023-07-10 Thread Jens Axboe
On 7/10/23 9:24?AM, Mikulas Patocka wrote: > > > On Mon, 10 Jul 2023, Li Nan wrote: > >> Hi, Mikulas >> >> The lack of discard in ramdisk can cause some issues related to dm. see: >> https://lore.kernel.org/all/20220228141354.1091687-1-luomen...@huawei.com/ >> >> I noticed that your patch

Re: [dm-devel] [PATCH v2 3/4] brd: enable discard

2023-07-10 Thread Mikulas Patocka
On Mon, 10 Jul 2023, Li Nan wrote: > Hi, Mikulas > > The lack of discard in ramdisk can cause some issues related to dm. see: > https://lore.kernel.org/all/20220228141354.1091687-1-luomen...@huawei.com/ > > I noticed that your patch series has already supported discard for brd. But > this

[dm-devel] [PATCH v2 3/4] brd: enable discard

2022-09-20 Thread Mikulas Patocka
This patch implements discard in the brd driver. We use RCU to free the page, so that if there are any concurrent readers or writes, they won't touch the page after it is freed. Signed-off-by: Mikulas Patocka --- drivers/block/brd.c | 64 +++-