Re: [BK PATCHES] add ata scsi driver

Nick Piggin
2003-05-27T00:37:17Z

Linus Torvalds wrote:

>On Tue, 27 May 2003, Nick Piggin wrote:
>
>>There is an elevator notifier which is called on request
>>completion in Andrew's tree (needed for AS io scheduler). This
>>can be used to do what you want.
>>
>
>Well, yeah, sure, you can use it to keep track of outstanding requests.
>But wouldn't it be nicer to see them in the first place?
>
Yeah. Basically the driver will call:
elv_next_request, elv_remove_request, elv_completed_request

elv_remove_request can easily just move the request to another
list, which is removed by elv_completed_request.

Don't let the names bother you, the elevator (in Andrew's tree)
gets all the information it needs.