Whamcloud - gitweb
LU-13814 llite: note references in direct_rw_pages 83/52083/10
authorPatrick Farrell <pfarrell@whamcloud.com>
Sun, 17 Sep 2023 18:12:03 +0000 (14:12 -0400)
committerPatrick Farrell <pfarrell@whamcloud.com>
Sun, 17 Sep 2023 19:00:12 +0000 (15:00 -0400)
Add a comment denoting the function of cl_2queue_fini in
ll_direct_rw_pages.  This will eventually be removed as
part of this process, but this comment serves as a remidner
for when we get to that step.

Test-Parameters: trivial
Test-Parameters: forjanitoronly
Test-Parameters: fortestonly
Signed-off-by: Patrick Farrell <pfarrell@whamcloud.com>
Change-Id: I98a03c7ee0d97665d77a321bc21b4fab6448b2d7

lustre/llite/rw26.c

index 3ccf8a4..a66d052 100644 (file)
@@ -449,6 +449,10 @@ ll_direct_rw_pages(const struct lu_env *env, struct cl_io *io, size_t size,
        }
 
 out:
+       /* if pages were not submitted successfully above, this takes care of
+        * taking them off the list and removing the single reference they have
+        * from when they were created
+        */
        cl_2queue_fini(env, queue);
        RETURN(rc);
 }