Whamcloud - gitweb
LU-13814 llite: note references in direct_rw_pages 83/52083/21
authorPatrick Farrell <pfarrell@whamcloud.com>
Fri, 23 Feb 2024 16:18:18 +0000 (11:18 -0500)
committerOleg Drokin <green@whamcloud.com>
Wed, 31 Jul 2024 15:56:36 +0000 (15:56 +0000)
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
Signed-off-by: Patrick Farrell <patrick.farrell@oracle.com>
Change-Id: I98a03c7ee0d97665d77a321bc21b4fab6448b2d7
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/52083
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Reviewed-by: Qian Yingjin <qian@ddn.com>
Reviewed-by: Sebastien Buisson <sbuisson@ddn.com>
lustre/llite/rw26.c

index b84e686..262cc5a 100644 (file)
@@ -451,6 +451,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);
 }