zram-return-errors-from-read_from_bdev_sync.patch removed from -mm tree
The quilt patch titled
Subject: zram: return errors from read_from_bdev_sync
has been removed from the -mm tree. Its filename was
zram-return-errors-from-read_from_bdev_sync.patch
This patch was dropped because it was merged into the mm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
------------------------------------------------------
From: Christoph Hellwig <[email protected]>
Subject: zram: return errors from read_from_bdev_sync
Date: Tue, 11 Apr 2023 19:14:59 +0200
Propagate read errors to the caller instead of dropping them on the floor, and stop returning the somewhat dangerous 1 on success from read_from_bdev*.
Signed-off-by Christoph Hellwig <[email protected]>
Reviewed-by Sergey Senozhatsky <[email protected]>
Acked-by Minchan Kim <[email protected]>
Cc Jens Axboe <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
drivers/block/zram/zram_drv.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)
drivers/block/zram/zram_drv.c renamed from drivers/block/zram/zram_drv.c~zram-return-errors-from-read_from_bdev_sync +4 -3
@@ -770,6 +770,7 @@ struct zram_work {struct zram *zram;unsigned long entry;struct page *page; +int error; };static void zram_sync_read (struct work_struct *work)
@@ -781,7 +782,7 @@ static void zram_sync_read(struct work_sbio_init (&bio, zw->zram->bdev, &bv,1 ,REQ_OP_READ ); bio.bi_iter.bi_sector = zw->entry * (PAGE_SIZE >>9 );__bio_add_page (&bio, zw->page,PAGE_SIZE ,0 ); -submit_bio_wait (&bio); + zw->error =submit_bio_wait (&bio); }/*
@@ -803,7 +804,7 @@ static int read_from_bdev_sync(struct zrflush_work (&work.work);destroy_work_on_stack (&work.work); -return 1 ; +return work.error; } static int read_from_bdev(struct zram *zram, struct page *page,
@@ -816,7 +817,7 @@ static int read_from_bdev(struct zram *z return read_from_bdev_sync(zram, page, entry); }read_from_bdev_async (zram, page, entry, parent); -return 1 ; +return 0 ; }#else static inline void reset_bdev (struct zram *zram) {};
_
Patches currently in -mm which might be from [email protected] are