diff options
| author | Nicholas Bellinger <nab@linux-iscsi.org> | 2017-03-08 03:09:59 -0500 |
|---|---|---|
| committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2017-03-18 17:42:50 -0400 |
| commit | 9c28ca4ff8bad7486182291a55b4f67a70af718d (patch) | |
| tree | dd2051def11c3416ae0f377ee853bdd1c6931e4a /drivers/target/target_core_configfs.c | |
| parent | 13603685c1f12c67a7a2427f00b63f39a2b6f7c9 (diff) | |
target: Drop pointless tfo->check_stop_free check
All in-tree fabric drivers provide a tfo->check_stop_free(),
so there is no need to do the extra check within existing
transport_cmd_check_stop_to_fabric() code.
Just to be sure, add a check in target_fabric_tf_ops_check()
to notify any out-of-tree drivers that might be missing it.
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'drivers/target/target_core_configfs.c')
| -rw-r--r-- | drivers/target/target_core_configfs.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/target/target_core_configfs.c b/drivers/target/target_core_configfs.c index 54b36c9835be..38b5025e4c7a 100644 --- a/drivers/target/target_core_configfs.c +++ b/drivers/target/target_core_configfs.c | |||
| @@ -421,6 +421,10 @@ static int target_fabric_tf_ops_check(const struct target_core_fabric_ops *tfo) | |||
| 421 | pr_err("Missing tfo->aborted_task()\n"); | 421 | pr_err("Missing tfo->aborted_task()\n"); |
| 422 | return -EINVAL; | 422 | return -EINVAL; |
| 423 | } | 423 | } |
| 424 | if (!tfo->check_stop_free) { | ||
| 425 | pr_err("Missing tfo->check_stop_free()\n"); | ||
| 426 | return -EINVAL; | ||
| 427 | } | ||
| 424 | /* | 428 | /* |
| 425 | * We at least require tfo->fabric_make_wwn(), tfo->fabric_drop_wwn() | 429 | * We at least require tfo->fabric_make_wwn(), tfo->fabric_drop_wwn() |
| 426 | * tfo->fabric_make_tpg() and tfo->fabric_drop_tpg() in | 430 | * tfo->fabric_make_tpg() and tfo->fabric_drop_tpg() in |
