]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
tcmu: Fix module removal due to stuck unmap_thread thread again
authorXiubo Li <lixiubo@cmss.chinamobile.com>
Thu, 15 Jun 2017 07:05:31 +0000 (15:05 +0800)
committerNicholas Bellinger <nab@linux-iscsi.org>
Fri, 7 Jul 2017 06:11:33 +0000 (23:11 -0700)
commit07932a023af3cd728390ffdaeffb78e357123181
treec33e79e1a12465f542a8a4496eb603da0ac9b772
parent1d6ef276594a781686058802996e09c8550fd767
tcmu: Fix module removal due to stuck unmap_thread thread again

Because the unmap code just after the schdule() returned may take
a long time and if the kthread_stop() is fired just when in this
routine, the module removal maybe stuck too.

Signed-off-by: Xiubo Li <lixiubo@cmss.chinamobile.com>
Reviewed-by: Mike Christie <mchristi@redhat.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/target_core_user.c