kernel-hacking-2024-linux-s.../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
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