Re: [PATCH] [MEMSTICK] Initial commit for Sony MemoryStick support

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Jens Axboe
Date: Friday, January 11, 2008 - 5:14 am

On Thu, Jan 10 2008, Andrew Morton wrote:

It's suboptimal and doesn't work for non-fs request. Just use
end_queued_request() instead:

if (msb->q_thread) {
        msb->has_request = 1;
        wake_up(&msb->q_wait);
} else {
        while ((req = elv_next_request(q)) != NULL)
                end_queued_request(req, -ENODEV);
}

which is simpler and gets all cases correct. Reordering for normal case
as well.

-- 
Jens Axboe

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH] [MEMSTICK] Initial commit for Sony MemoryStick ..., Jens Axboe, (Fri Jan 11, 5:14 am)
Re: [PATCH] [MEMSTICK] Initial commit for Sony MemoryStick ..., Mariusz Kozlowski, (Tue Jan 15, 10:21 am)
[PATCH] [MEMSTICK] Updates for the memstick driver, Alex Dubov, (Fri Jan 25, 12:58 am)
Re: [PATCH] [MEMSTICK] Updates for the memstick driver, Andrew Morton, (Sat Jan 26, 11:01 pm)
Re: [PATCH] [MEMSTICK] Updates for the memstick driver, Andrew Morton, (Sat Feb 2, 5:16 pm)