diff options
author | Nicholas Bellinger <nab@daterainc.com> | 2013-08-22 15:48:53 -0400 |
---|---|---|
committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2013-09-10 19:48:47 -0400 |
commit | f99715ac8d6fb553ccd0598a264e88981b4c60c1 (patch) | |
tree | e679dd7e638d1e8c3875e8b97a26bdbe0a0ab205 /drivers/target | |
parent | d397a445f43c7ae9b35260f236a08d5b5760de3d (diff) |
target: Enable global EXTENDED_COPY setup/release
Add calls to target_xcopy_setup_pt() + target_xcopy_release_pt() to
target_core_init_configfs() and target_core_exit_configfs()
respectively.
Cc: Christoph Hellwig <hch@lst.de>
Cc: Hannes Reinecke <hare@suse.de>
Cc: Martin Petersen <martin.petersen@oracle.com>
Cc: Chris Mason <chris.mason@fusionio.com>
Cc: Roland Dreier <roland@purestorage.com>
Cc: Zach Brown <zab@redhat.com>
Cc: James Bottomley <JBottomley@Parallels.com>
Cc: Nicholas Bellinger <nab@linux-iscsi.org>
Signed-off-by: Nicholas Bellinger <nab@daterainc.com>
Diffstat (limited to 'drivers/target')
-rw-r--r-- | drivers/target/target_core_configfs.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/target/target_core_configfs.c b/drivers/target/target_core_configfs.c index 026e42bc4b5f..328f4258726b 100644 --- a/drivers/target/target_core_configfs.c +++ b/drivers/target/target_core_configfs.c | |||
@@ -48,6 +48,7 @@ | |||
48 | #include "target_core_alua.h" | 48 | #include "target_core_alua.h" |
49 | #include "target_core_pr.h" | 49 | #include "target_core_pr.h" |
50 | #include "target_core_rd.h" | 50 | #include "target_core_rd.h" |
51 | #include "target_core_xcopy.h" | ||
51 | 52 | ||
52 | extern struct t10_alua_lu_gp *default_lu_gp; | 53 | extern struct t10_alua_lu_gp *default_lu_gp; |
53 | 54 | ||
@@ -2935,6 +2936,10 @@ static int __init target_core_init_configfs(void) | |||
2935 | if (ret < 0) | 2936 | if (ret < 0) |
2936 | goto out; | 2937 | goto out; |
2937 | 2938 | ||
2939 | ret = target_xcopy_setup_pt(); | ||
2940 | if (ret < 0) | ||
2941 | goto out; | ||
2942 | |||
2938 | return 0; | 2943 | return 0; |
2939 | 2944 | ||
2940 | out: | 2945 | out: |
@@ -3007,6 +3012,7 @@ static void __exit target_core_exit_configfs(void) | |||
3007 | 3012 | ||
3008 | core_dev_release_virtual_lun0(); | 3013 | core_dev_release_virtual_lun0(); |
3009 | rd_module_exit(); | 3014 | rd_module_exit(); |
3015 | target_xcopy_release_pt(); | ||
3010 | release_se_kmem_caches(); | 3016 | release_se_kmem_caches(); |
3011 | } | 3017 | } |
3012 | 3018 | ||