From cde21c669a159828a3640e236655c5032b5476bb Mon Sep 17 00:00:00 2001 From: Vladislav Bolkhovitin Date: Tue, 26 Jul 2016 02:04:34 +0000 Subject: [PATCH] scst: small post-r6913 cleanup git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6918 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst/src/scst_pres.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/scst/src/scst_pres.c b/scst/src/scst_pres.c index 1627e792d..db2d8fdad 100644 --- a/scst/src/scst_pres.c +++ b/scst/src/scst_pres.c @@ -1019,11 +1019,17 @@ out_set_fs: set_fs(old_fs); out: - if (res != 0) + if (res != 0) { PRINT_CRIT_ERROR("Unable to save persistent information " "(device %s)", dev->virt_name); + /* + * It's safer to not return any error to the initiator and expect + * operator's intervention to be able to save the PR's state next + * time, than to screw up all the interactions with this initiator. + */ + } - TRACE_EXIT_RES(res); + TRACE_EXIT(); return; write_error: