[PATCH] scsi: ibmvscsi: protect abort handler from done-scmd in flight

2014-06-05 Thread Liu Ping Fan
Take the following scene in guest: seqA: scsi_done() - gapX (before taking REQ_ATOM_COMPLETE) seqB: scmd_eh_abort_handler()- ...- ibmvscsi_eh_abort_handler()- ...-scsi_put_command(scmd) If seqA is scheduled at gapX, and seqB reclaims scmd. Then when seqA comes back, it tries to access the

Re: [PATCH] scsi: ibmvscsi: protect abort handler from done-scmd in flight

2014-06-05 Thread Paolo Bonzini
Il 05/06/2014 08:16, Liu Ping Fan ha scritto: Take the following scene in guest: seqA: scsi_done() - gapX (before taking REQ_ATOM_COMPLETE) seqB: scmd_eh_abort_handler()- ...- ibmvscsi_eh_abort_handler()- ...-scsi_put_command(scmd) If seqA is scheduled at gapX, and seqB reclaims scmd.