linux/drivers/target/tcm_fc
Nicholas Bellinger 2be18149d9 tcm_fc: Convert to wake_up_process and schedule_timeout_interruptible
This patch converts ft_queue_cmd() to use wake_up_process() and
ft_thread() to use schedule_timeout_interruptible(MAX_SCHEDULE_TIMEOUT)
instead of wait_event_interruptible().  This fixes a potential race with
the wait_event_interruptible() conditional with qobj->queue_cnt in
ft_thread().

This patch also drops the unnecessary set_user_nice(current, -20) in
ft_thread(), and drops extra () around two if (!(acl)) conditionals in
tfc_conf.c.

Reported-by: Christoph Hellwig <hch@infradead.org>
Signed-off-by: Nicholas A. Bellinger <nab@linux-iscsi.org>
2011-07-22 09:37:47 +00:00
..
Kconfig [SCSI] tcm_fc: Adding FC_FC4 provider (tcm_fc) for FCoE target (TCM - target core) support 2011-05-17 10:52:46 +04:00
Makefile tcm_fc: Makefile cleanups 2011-07-22 09:37:47 +00:00
tcm_fc.h target: remove the always-noop ->new_cmd_failure method 2011-07-22 09:37:44 +00:00
tfc_cmd.c tcm_fc: Convert to wake_up_process and schedule_timeout_interruptible 2011-07-22 09:37:47 +00:00
tfc_conf.c tcm_fc: Convert to wake_up_process and schedule_timeout_interruptible 2011-07-22 09:37:47 +00:00
tfc_io.c target: Updates from AGrover and HCH (round 3) 2011-07-22 09:37:44 +00:00
tfc_sess.c tcm_fc: Fix possible lock to unlock type deadlock 2011-06-24 00:09:15 +00:00