On 02/10/2010 04:24 PM, Michael Reed wrote:
+ /* + * If device is blocked, leave state alone and let blocker + * unblock when appropriate. Otherwise, set the device + * running here so that slave configure may perform i/o. + */ + if (sdev->sdev_state != SDEV_BLOCK) { + ret = scsi_device_set_state(sdev, SDEV_RUNNING);
Do we need locking here? Is it possible that right after we check the sdev_state for being blocked, it could be be set to blocked?
-- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html