Skip to content
  • Tejun Heo's avatar
    block: interface update for ioc/icq creation functions · 24acfc34
    Tejun Heo authored
    
    
    Make the following interface updates to prepare for future ioc related
    changes.
    
    * create_io_context() returning ioc only works for %current because it
      doesn't increment ref on the ioc.  Drop @task parameter from it and
      always assume %current.
    
    * Make create_io_context_slowpath() return 0 or -errno and rename it
      to create_task_io_context().
    
    * Make ioc_create_icq() take @ioc as parameter instead of assuming
      that of %current.  The caller, get_request(), is updated to create
      ioc explicitly and then pass it into ioc_create_icq().
    
    Signed-off-by: default avatarTejun Heo <tj@kernel.org>
    Cc: Vivek Goyal <vgoyal@redhat.com>
    Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
    24acfc34