Fam Zheng
61e68b3fbd
scsi: Optimize scsi_req_alloc
...
Zeroing sense buffer for each scsi request is not efficient, we can just
leave it uninitialized because sense_len is set to 0.
Move the implicitly zeroed fields to the end of the structure and use a
partial memset.
The explicitly initialized fields (by scsi_req_alloc or scsi_req_new)
are moved to the beginning of the structure, before sense buffer, to
skip the memset.
Also change g_malloc0 to g_slice_alloc.
Signed-off-by: Fam Zheng <famz@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2014-09-23 15:40:51 +02:00
..
2014-09-04 10:51:13 -05:00
2014-08-25 00:16:06 +02:00
2014-09-09 13:41:43 +02:00
2014-09-12 16:55:49 +01:00
2014-08-19 13:00:57 +01:00
2014-09-22 11:39:51 +01:00
2014-08-15 19:12:48 +04:00
2014-09-11 12:20:32 +02:00
2014-09-18 20:02:01 +01:00
2013-12-24 18:02:18 +01:00
2014-09-09 13:41:43 +02:00
2014-09-12 16:55:49 +01:00
2014-08-24 13:16:32 +04:00
2014-09-12 14:06:48 +01:00
2014-09-02 22:38:16 +04:00
2014-09-22 12:09:43 +04:00
2014-09-22 11:39:41 +01:00
2014-09-11 12:20:32 +02:00
2014-09-02 22:38:16 +04:00
2014-08-18 12:06:21 +02:00
2014-09-02 22:38:16 +04:00
2014-09-09 13:41:43 +02:00
2014-09-09 13:41:43 +02:00
2014-08-14 13:22:00 +02:00
2014-09-09 13:41:43 +02:00
2014-09-09 13:41:43 +02:00
2014-09-08 12:50:52 +02:00
2014-09-09 13:41:43 +02:00
2014-09-22 11:39:49 +01:00
2014-09-08 12:50:52 +02:00
2014-09-09 13:41:43 +02:00
2014-09-09 13:41:43 +02:00
2014-09-02 17:28:26 +03:00
2014-09-12 16:55:49 +01:00
2014-06-30 21:13:30 +02:00
2014-09-20 17:55:53 +04:00
2014-09-09 13:41:43 +02:00
2014-09-23 15:40:51 +02:00
2014-08-04 14:41:54 +01:00
2014-09-09 13:41:43 +02:00
2014-09-09 13:41:43 +02:00
2014-09-09 13:41:43 +02:00
2014-08-15 18:54:40 +04:00
2014-09-11 12:20:32 +02:00
2014-08-25 00:16:06 +02:00
2014-09-09 13:41:43 +02:00
2014-09-09 13:41:43 +02:00
2014-09-10 07:20:53 +02:00
2014-09-22 11:39:51 +01:00
2014-08-18 12:06:21 +02:00
2014-08-18 12:06:21 +02:00
2014-05-28 17:35:01 +02:00
2014-09-09 13:41:43 +02:00
2014-06-19 16:41:47 +03:00