public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 00/11] st: remove scsi_execute_async usage (the first half)
@ 2008-11-30  8:07 FUJITA Tomonori
  2008-11-30  8:07 ` [PATCH 01/11] st: move st_request initialization to st_allocate_request form st_do_scsi FUJITA Tomonori
                   ` (2 more replies)
  0 siblings, 3 replies; 26+ messages in thread
From: FUJITA Tomonori @ 2008-11-30  8:07 UTC (permalink / raw)
  To: Kai.Makisara; +Cc: James.Bottomley, fujita.tomonori, linux-scsi

This patchset removes the majority of scsi_execute_async in st
driver. IOW, this converts st driver to use the block layer functions.

We are in the process of removing scsi_execute_async and
scsi_req_map_sg. scsi_execute_async in sg driver were removed in
2.6.27. Now only st and osst drivers use scsi_execute_async().

st driver uses scsi_execute_async for two purposes, performing sort
management SCSI commands internally and data transfer between user and
kernel space (st_read and st_write). This patchset converts the
former.

The former performs SCSI commands synchronously. It uses a liner
in-kernel buffer (not scatter gather) for data transfer. To perform
such commands, other upper layer drivers (e.g. sd) use
scsi_execute_req (internally uses blk_rq_map_kern and and
blk_execute_rq). scsi_execute_req is not fully fit for st so I adds a
helper function similar to scsi_execute_req and replace
scsi_execute_async in st driver (I might modify scsi_execute_req for
st and remove the helper function later).

I'm still working on converting scsi_execute_async for data transfer
between user and kernel space but I want to get this first half be
merged.

Thanks,



^ permalink raw reply	[flat|nested] 26+ messages in thread

end of thread, other threads:[~2008-12-05  6:25 UTC | newest]

Thread overview: 26+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-30  8:07 [PATCH 00/11] st: remove scsi_execute_async usage (the first half) FUJITA Tomonori
2008-11-30  8:07 ` [PATCH 01/11] st: move st_request initialization to st_allocate_request form st_do_scsi FUJITA Tomonori
2008-11-30  8:07   ` [PATCH 02/11] st: add st_scsi_kern_execute helper function FUJITA Tomonori
2008-11-30  8:07     ` [PATCH 03/11] st: convert test_ready to use st_scsi_kern_execute FUJITA Tomonori
2008-11-30  8:07       ` [PATCH 04/11] st: convert set_location " FUJITA Tomonori
2008-11-30  8:07         ` [PATCH 05/11] st: convert do_load_unload " FUJITA Tomonori
2008-11-30  8:08           ` [PATCH 06/11] st: convert cross_eof " FUJITA Tomonori
2008-11-30  8:08             ` [PATCH 07/11] st: convert st_flush " FUJITA Tomonori
2008-11-30  8:08               ` [PATCH 08/11] st: convert check_tape " FUJITA Tomonori
2008-11-30  8:08                 ` [PATCH 09/11] st: convert read_mode_page " FUJITA Tomonori
2008-11-30  8:08                   ` [PATCH 10/11] st: convert write_mode_page " FUJITA Tomonori
2008-11-30  8:08                     ` [PATCH 11/11] st: convert get_location " FUJITA Tomonori
2008-11-30 12:12                   ` [PATCH 09/11] st: convert read_mode_page " Boaz Harrosh
2008-12-01  8:21                     ` FUJITA Tomonori
2008-11-30 12:10     ` [PATCH 02/11] st: add st_scsi_kern_execute helper function Boaz Harrosh
2008-12-01  8:15       ` FUJITA Tomonori
2008-12-01 15:19 ` [PATCH 00/11] st: remove scsi_execute_async usage (the first half) Vladislav Bolkhovitin
2008-12-01 15:36   ` Boaz Harrosh
2008-12-01 18:17     ` Vladislav Bolkhovitin
2008-12-02  7:52       ` Boaz Harrosh
2008-12-02 19:08 ` Kai Makisara
2008-12-03  0:27   ` FUJITA Tomonori
2008-12-03 19:40     ` Kai Makisara
2008-12-04  5:53       ` FUJITA Tomonori
2008-12-04 20:23         ` Kai Makisara
2008-12-05  6:25           ` FUJITA Tomonori

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox