Re: + hpsa-use-msleep-instead-of-schedule_timeout.patch added to-mm tree

From: Jiri Slaby
Date: Tue Dec 08 2009 - 17:26:37 EST


On 12/08/2009 11:25 PM, Jiri Slaby wrote:
>> @@ -3302,7 +3302,8 @@ static int __devinit hpsa_init_one(struc
>>
>> /* Some devices (notably the HP Smart Array 5i Controller)
>> need a little pause here */
>> - schedule_timeout_uninterruptible(HPSA_POST_RESET_PAUSE);
>> + set_current_state(TASK_UNINTERRUPTIBLE);
>> + msleep(HPSA_POST_RESET_PAUSE_MSECS);
>
> Hmm, setting the state is superfluous, as msleep does the job itself.

(FWIW addressed by Andrew already.)

--
js
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/