From e8575e85c32ea37be550d64253658a52ff7d3aa6 Mon Sep 17 00:00:00 2001 From: Vladislav Bolkhovitin Date: Wed, 17 Feb 2016 03:30:17 +0000 Subject: [PATCH] scst_vdisk: clarify vdisk_no_fd_allowed_commands() comment git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6804 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst/src/dev_handlers/scst_vdisk.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scst/src/dev_handlers/scst_vdisk.c b/scst/src/dev_handlers/scst_vdisk.c index 963f08664..4b9295d26 100644 --- a/scst/src/dev_handlers/scst_vdisk.c +++ b/scst/src/dev_handlers/scst_vdisk.c @@ -3614,7 +3614,11 @@ static int blockio_exec(struct scst_cmd *cmd) if (unlikely(virt_dev->fd == NULL)) { if (!vdisk_no_fd_allowed_commands(cmd)) { - /* We should not get here */ + /* + * We should not get here, unless the user space + * misconfiguring something, e.g. set optimized + * ALUA state for secondary DRBD device. + */ PRINT_WARNING("Closed FD on exec. Secondary DRBD or not " "blocked dev before ALUA state change? " "(cmd %p, op %s, dev %s)", cmd, cmd->op_name,