aboutsummaryrefslogtreecommitdiffstats
path: root/lib/string_helpers.c
diff options
context:
space:
mode:
authorUma Krishnan <[email protected]>2016-03-04 21:55:18 +0000
committerMartin K. Petersen <[email protected]>2016-03-09 02:17:33 +0000
commit5d1952acd0d56f6b6835aa45bea763ee97b9e66f (patch)
treef37166e34c555d2c106efd20de6bcd369f0049e5 /lib/string_helpers.c
parentcxlflash: Simplify attach path error cleanup (diff)
downloadkernel-5d1952acd0d56f6b6835aa45bea763ee97b9e66f.tar.gz
kernel-5d1952acd0d56f6b6835aa45bea763ee97b9e66f.zip
cxlflash: Reorder user context initialization
In order to support cxlflash in the PowerVM environment, underlying hypervisor APIs have imposed a kernel API ordering change. For the superpipe access to LUN, user applications need a context. The cxlflash module creates this context by making a sequence of cxl calls. In the current code, a context is initialized via cxl_dev_context_init() followed by cxl_process_element(), a function that obtains the process element id. Finally, cxl_start_work() is called to attach the process element. In the PowerVM environment, a process element id cannot be obtained from the hypervisor until the process element is attached. The cxlflash module is unable to create contexts without a valid process element id. To fix this problem, cxl_start_work() is called before obtaining the process element id. Signed-off-by: Uma Krishnan <[email protected]> Acked-by: Matthew R. Ochs <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'lib/string_helpers.c')
0 files changed, 0 insertions, 0 deletions