• M
    [SCSI] iscsi_tcp: fix xmittask oops · db37c505
    Mike Christie 提交于
    XMSTATE_SOL_HDR could be set when the xmit thread tests it, but there may
    not be anything on the r2tqueue yet. Move the XMSTATE_SOL_HDR set
    before the addition to the queue to make sure that when we pull something
    off it it is valid. This does not add locks around the xmstate test or make
    that a atmoic_t because this is a fast path and if it is set when we test it
    we can handle it there without the overhead. Later on we check the xmitqueue
    for all requests with the session lock so we will not miss it.
    Signed-off-by: NMike Christie <michaelc@cs.wisc.edu>
    Signed-off-by: NJames Bottomley <James.Bottomley@SteelEye.com>
    db37c505
iscsi_tcp.c 57.8 KB