27 lines
869 B
Diff
27 lines
869 B
Diff
|
|
From f90c3d69cedf94fa094bc71cc98376d58d970223 Mon Sep 17 00:00:00 2001
|
||
|
|
From: Zdenek Kabelac <zkabelac@redhat.com>
|
||
|
|
Date: Fri, 1 Nov 2019 21:01:51 +0100
|
||
|
|
Subject: [PATCH 170/180] cov: ensure read_ahead is available
|
||
|
|
|
||
|
|
Make sure read_ahead pointer is not NULL when quering for RA.
|
||
|
|
---
|
||
|
|
lib/activate/dev_manager.c | 2 +-
|
||
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||
|
|
|
||
|
|
diff --git a/lib/activate/dev_manager.c b/lib/activate/dev_manager.c
|
||
|
|
index d281b60..4e7a631 100644
|
||
|
|
--- a/lib/activate/dev_manager.c
|
||
|
|
+++ b/lib/activate/dev_manager.c
|
||
|
|
@@ -258,7 +258,7 @@ static int _info_run(const char *dlid, struct dm_info *dminfo,
|
||
|
|
with_open_count, with_flush, 0)))
|
||
|
|
return_0;
|
||
|
|
|
||
|
|
- if (with_read_ahead && dminfo->exists) {
|
||
|
|
+ if (with_read_ahead && read_ahead && dminfo->exists) {
|
||
|
|
if (!dm_task_get_read_ahead(dmt, read_ahead))
|
||
|
|
goto_out;
|
||
|
|
} else if (read_ahead)
|
||
|
|
--
|
||
|
|
2.19.1
|
||
|
|
|