[RHEL7,COMMIT] ploop: Add more debug on error

Submitted by Vasily Averin on Oct. 29, 2020, 8:15 p.m.

Details

Message ID 202010292015.09TKFKXB017183@vz7build.vvs.sw.ru
State New
Series "Series without cover letter"
Headers show

Commit Message

Vasily Averin Oct. 29, 2020, 8:15 p.m.
The commit is pushed to "branch-rh7-3.10.0-1127.18.2.vz7.163.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh7-3.10.0-1127.18.2.vz7.163.42
------>
commit 29cd6e7d77aa2f95cf538dd4d8bd8200c4f5c33c
Author: Kirill Tkhai <ktkhai@virtuozzo.com>
Date:   Thu Oct 29 23:15:20 2020 +0300

    ploop: Add more debug on error
    
    Signed-off-by: Kirill Tkhai <ktkhai@virtuozzo.com>
---
 include/linux/ploop/ploop.h | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

Patch hide | download patch | download mbox

diff --git a/include/linux/ploop/ploop.h b/include/linux/ploop/ploop.h
index bffd83b..766a0e9f 100644
--- a/include/linux/ploop/ploop.h
+++ b/include/linux/ploop/ploop.h
@@ -732,10 +732,11 @@  static inline void ploop_req_set_error(struct ploop_request * preq, int err)
 	do {									\
 		if ((err)) {							\
 			printk("%s() %d ploop%d set error %d: clu=%u, sec=%lu, "\
-				"size=%u, rw=0x%x, iblock=%u\n",		\
+			"size=%u, rw=0x%x, iblock=%u, state=0x%lx, eng=0x%lx\n",\
 			__FUNCTION__, __LINE__, (preq)->plo->index, (int)(err),	\
 			(preq)->req_cluster, (preq)->req_sector,		\
-			(preq)->req_size, (preq)->req_rw, (preq)->iblock);	\
+			(preq)->req_size, (preq)->req_rw, (preq)->iblock,	\
+			(preq)->state, (preq)->eng_state);			\
 			PLOOP_TRACE_ERROR_DUMP_STACK();				\
 		}								\
 	} while (0);