kernel-ark/drivers/target/tcm_fc
Christoph Hellwig 58fc73d10f tcm_fc: Work queue based approach instead of managing own thread and event based mechanism
Problem: Changed from wake_up_interruptible -> wake_up_process and
wait_event_interruptible-> schedule_timeout_interruptible broke the FCoE
target.  Earlier approach of wake_up_interruptible was also looking at
'queue_cnt' which is not necessary, because it increment of 'queue_cnt'
with wake_up_inetrriptible / waker_up_process introduces race condition.

Fix: Instead of fixing the code which used wake_up_process and remove
'queue_cnt', using work_queue based approach is cleaner and acheives
same result. As well, work queue based approach has less programming
overhead and OS manages threads which processes work queues.

This patch is developed by Christoph Hellwig and reviwed+validated by
Kiran Patil.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Kiran Patil <kiran.patil@intel.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
2011-09-16 09:50:09 +00:00
..
Kconfig
Makefile tcm_fc: Makefile cleanups 2011-07-22 09:37:47 +00:00
tcm_fc.h tcm_fc: Work queue based approach instead of managing own thread and event based mechanism 2011-09-16 09:50:09 +00:00
tfc_cmd.c tcm_fc: Work queue based approach instead of managing own thread and event based mechanism 2011-09-16 09:50:09 +00:00
tfc_conf.c tcm_fc: Work queue based approach instead of managing own thread and event based mechanism 2011-09-16 09:50:09 +00:00
tfc_io.c tcm_fc: Invalidation of DDP context for FCoE target in error conditions 2011-09-16 09:29:27 +00:00
tfc_sess.c Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial 2011-07-25 13:56:39 -07:00