Files
kernel_xiaomi_sm8250/include/linux
Kiyoshi Ueda e19a3ab058 blk_end_request: add callback feature (take 4)
This patch adds a variant of the interface, blk_end_request_callback(),
which has driver callback feature.

Drivers may need to do special works between end_that_request_first()
and end_that_request_last().
For such drivers, blk_end_request_callback() allows it to pass
a callback function which is called between end_that_request_first()
and end_that_request_last().

This interface is only for fallback of other blk_end_request interfaces.
Drivers should avoid their tricky behaviors and use other interfaces
as much as possible.

Currently, only one driver, ide-cd, needs this interface.
So this interface should/will be removed, after the driver removes
such tricky behaviors.

o ide-cd (cdrom_newpc_intr())
  In PIO mode, cdrom_newpc_intr() needs to defer end_that_request_last()
  until the device clears DRQ_STAT and raises an interrupt after
  end_that_request_first().
  So end_that_request_first() and end_that_request_last() are called
  separately in cdrom_newpc_intr().

  This means blk_end_request_callback() has to return without
  completing request even if no leftover in the request.
  To satisfy the requirement, callback function has return value
  so that drivers can tell blk_end_request_callback() to return
  without completing request.

Signed-off-by: Kiyoshi Ueda <k-ueda@ct.jp.nec.com>
Signed-off-by: Jun'ichi Nomura <j-nomura@ce.jp.nec.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
2008-01-28 10:37:04 +01:00
..
2007-12-26 19:36:35 -08:00
2008-01-23 05:24:15 -05:00
2007-10-21 02:37:45 -04:00
2007-10-19 11:53:42 -07:00
2007-10-19 11:53:42 -07:00
2008-01-23 05:24:14 -05:00
2007-10-19 11:53:36 -07:00
2007-10-19 11:53:36 -07:00
2008-01-25 21:08:02 +01:00
2007-11-19 21:43:22 -05:00
2007-10-21 02:37:45 -04:00
2007-10-19 11:53:36 -07:00
2007-12-20 17:32:12 +00:00
2007-10-20 02:00:58 +01:00
2008-01-23 21:23:13 -05:00
2007-10-22 08:13:19 -07:00
2007-10-22 08:13:20 -07:00
2007-10-29 07:41:32 -07:00
2007-10-22 08:13:21 -07:00
2007-11-29 09:24:54 -08:00
2008-01-25 21:08:33 +01:00
2007-10-19 11:53:42 -07:00
2008-01-27 18:14:50 +01:00
2008-01-27 18:14:52 +01:00
2007-10-22 00:56:52 -04:00
2007-12-05 05:37:32 -08:00
2008-01-25 21:08:30 +01:00
2007-11-05 15:12:32 -08:00
2007-11-29 09:24:52 -08:00
2007-10-19 11:53:49 -07:00
2008-01-08 16:10:35 -08:00
2008-01-24 20:40:05 -08:00
2008-01-25 21:08:34 +01:00
2007-12-07 09:06:53 +00:00
2007-10-25 15:02:50 +10:00
2007-10-25 15:02:50 +10:00
2007-10-19 11:53:55 -07:00
2007-10-23 15:49:54 +10:00
2007-10-19 11:53:44 -07:00
2008-01-08 23:30:07 -08:00
2007-11-07 04:15:12 -08:00
2007-10-19 11:53:41 -07:00
2008-01-23 05:24:17 -05:00
2007-10-19 11:53:41 -07:00
2007-10-19 11:53:41 -07:00
2007-12-27 23:55:13 -05:00
2007-10-19 11:53:41 -07:00
2007-12-05 09:21:20 -08:00
2008-01-25 21:08:24 +01:00
2008-01-25 21:08:24 +01:00
2008-01-25 21:08:24 +01:00
2008-01-25 21:08:24 +01:00
2007-10-22 08:13:20 -07:00
2007-11-29 09:24:54 -08:00
2007-10-19 11:53:44 -07:00
2007-11-29 09:24:53 -08:00
2007-10-19 11:53:44 -07:00
2008-01-02 13:04:48 -08:00
2008-01-02 13:04:48 -08:00
2008-01-02 13:04:48 -08:00
2008-01-25 21:08:33 +01:00
2007-11-09 22:39:38 +01:00
2008-01-25 21:08:34 +01:00
2007-11-26 20:42:19 +01:00
2008-01-08 16:16:34 -08:00
2007-10-29 07:41:33 -07:00
2008-01-24 20:40:26 -08:00
2007-12-17 10:47:15 -08:00
2007-12-26 19:36:35 -08:00
2007-10-23 13:47:31 -05:00
2007-10-23 15:49:54 +10:00
2007-10-23 15:49:54 +10:00
2007-10-23 15:49:55 +10:00
2007-10-23 15:49:54 +10:00
2007-10-23 15:49:54 +10:00
2007-10-19 11:53:34 -07:00