]> git.baikalelectronics.ru Git - kernel.git/commit
tcm_fc: Convert to wake_up_process and schedule_timeout_interruptible
authorNicholas Bellinger <nab@linux-iscsi.org>
Fri, 27 May 2011 20:58:48 +0000 (13:58 -0700)
committerNicholas Bellinger <nab@linux-iscsi.org>
Fri, 22 Jul 2011 09:37:47 +0000 (09:37 +0000)
commit83c8a37ec1b1fe45b35f1d456f0df765b5fbf947
tree2d6d602112049f4e6188d8ee3412168760e302ae
parent0da3749a8a149a87242b16b082f90858e0c7d1f1
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>
drivers/target/tcm_fc/tfc_cmd.c
drivers/target/tcm_fc/tfc_conf.c