From: Nicholas Bellinger Date: Fri, 27 May 2011 20:58:48 +0000 (-0700) Subject: tcm_fc: Convert to wake_up_process and schedule_timeout_interruptible X-Git-Tag: v3.1-rc1~305^2~13 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2be18149d9d7ebfde7c3081d60f7c9d8d3b6f8c7;p=pandora-kernel.git 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 Signed-off-by: Nicholas A. Bellinger --- Reading git-diff-tree failed