[Devel] [PATCH RHEL9 COMMIT] dm-tracking: Do not return EAGAIN in case of there is no changed clu

Konstantin Khorenko khorenko at virtuozzo.com
Wed Oct 27 19:13:54 MSK 2021


The commit is pushed to "branch-rh9-5.14.vz9.1.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh9-5.14.0-4.vz9.10.20
------>
commit 4eff8e438b581cf1160a7b466e477696158cd6c8
Author: Kirill Tkhai <ktkhai at virtuozzo.com>
Date:   Wed Oct 27 19:13:54 2021 +0300

    dm-tracking: Do not return EAGAIN in case of there is no changed clu
    
    Return nothing (we do not call DMEMIT() in this case) instead.
    EAGAIN may confuse a user.
    
    Signed-off-by: Kirill Tkhai <ktkhai at virtuozzo.com>
---
 drivers/md/dm-tracking.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/md/dm-tracking.c b/drivers/md/dm-tracking.c
index a8880a83d270..e66060246acc 100644
--- a/drivers/md/dm-tracking.c
+++ b/drivers/md/dm-tracking.c
@@ -213,7 +213,7 @@ static int tracking_get_next(struct dm_tracking *dmt, char *result,
 {
 	unsigned int i, sz = 0, nr_clus = dmt->nr_clus, prev = dmt->cursor;
 	void *bitmap = dmt->bitmap;
-	int ret = -EAGAIN;
+	int ret = 0;
 
 	if (WARN_ON_ONCE(prev > nr_clus - 1))
 		prev = 0;


More information about the Devel mailing list