[Devel] [PATCH RHEL7 COMMIT] fs/fuse: remove extra check for empty active_list
Konstantin Khorenko
khorenko at virtuozzo.com
Fri Jun 15 15:06:29 MSK 2018
The commit is pushed to "branch-rh7-3.10.0-693.21.1.vz7.50.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh7-3.10.0-693.21.1.vz7.50.9
------>
commit 2abe35d4ec5da20e6052adcc33a19f22ad2dc32a
Author: Pavel Butsykin <pbutsykin at virtuozzo.com>
Date: Fri Jun 15 15:06:29 2018 +0300
fs/fuse: remove extra check for empty active_list
Check for empty list is already present in list_splice_tail_init().
Signed-off-by: Pavel Butsykin <pbutsykin at virtuozzo.com>
Reviewed-by: Kirill Tkhai <ktkhai at virtuozzo.com>
Acked-by: Alexey Kuznetsov <kuznet at virtuozzo.com>
---
fs/fuse/kio/pcs/pcs_map.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/fs/fuse/kio/pcs/pcs_map.c b/fs/fuse/kio/pcs/pcs_map.c
index 8b8d81dae163..e2b02f9863ac 100644
--- a/fs/fuse/kio/pcs/pcs_map.c
+++ b/fs/fuse/kio/pcs/pcs_map.c
@@ -1515,8 +1515,7 @@ static void pcs_cs_wakeup(struct pcs_cs * cs)
static int __pcs_cs_still_congested(struct pcs_cs * cs)
{
- if (!list_empty(&cs->active_list))
- list_splice_tail_init(&cs->active_list, &cs->cong_queue);
+ list_splice_tail_init(&cs->active_list, &cs->cong_queue);
if (list_empty(&cs->cong_queue)) {
BUG_ON(cs->cong_queue_len);
More information about the Devel
mailing list