diff options
| author | Mike Christie <[email protected]> | 2006-05-02 19:46:49 -0500 |
|---|---|---|
| committer | James Bottomley <[email protected]> | 2006-05-10 10:13:44 -0500 |
| commit | 665b44aee34e9f2c64558df4ec01d40576e45651 (patch) | |
| tree | 2ac5ff4b706f45c0259bdd9ecbe18d792255f109 /scripts/basic/split-include.c | |
| parent | 8d2860b3c3e933304f49171770658c00ed26fd79 (diff) | |
[SCSI] iscsi: dequeue all buffers from queue
debugged by [email protected]
patch and analysis by [email protected]
Only tcp_read_sock and recv_actor (iscsi_tcp_data_recv for us) see
desc.count. It is is used just for permitting tcp_read_sock to read
the portion of data in the socket.
When iscsi_tcp_data_recv sees a partial header, it sets
desc.count. However, it is possible that the next skb (containing the
rest of the header) still does not come. So I'm not sure that this
scheme is completely correct.
Ideally, we should use the exact length of the data in the socket for
desc.count. However, it is not so simple (see SIOCINQ in
tcp_ioctl). So I think that iscsi_tcp_data_recv can just stop playing
with desc.count and tell tcp_read_sock to read the all skbs. As
proposed already, if iscsi_tcp_data_ready sets desc.count to
non-zero, tcp_read_sock does that.
Signed-off-by: Mike Christie <[email protected]>
Signed-off-by: James Bottomley <[email protected]>
Diffstat (limited to 'scripts/basic/split-include.c')
0 files changed, 0 insertions, 0 deletions