]> git.baikalelectronics.ru Git - kernel.git/commit
tcmu: fix module removal due to stuck thread
authorMike Christie <mchristi@redhat.com>
Wed, 3 May 2017 04:57:05 +0000 (23:57 -0500)
committerNicholas Bellinger <nab@linux-iscsi.org>
Fri, 5 May 2017 03:01:41 +0000 (20:01 -0700)
commitab7c9d3d15ec2d5fea4f4b3b79009d8569c78c66
tree4dc3c3e5801ed5d22ba2e7e464136dd5c69ff6d6
parent69654d814831604f146a40bfe64fcd8e033e1c7e
tcmu: fix module removal due to stuck thread

We need to do a kthread_should_stop to check when kthread_stop has been
called.

This was a regression added in

590214c91c3129816f0060b4d9fcd1cf537129b6
tcmu: Add global data block pool support

so not sure if you wanted to merge it in with that patch or what.

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