Watch the Take Your Time Solo online guitar lesson by Jeff McErlain from Essentials: Advanced Blues Soloing
This solo is based primarily off of the G minor pentatonic scale, G-Bb-C-D-F, and I'm always tweaking my flatted 3rd a bit to allude to the natural third, as is common in the blues. Tweaking the third is an essential technique and indicative of the blues. It keeps the harmony somewhat ambiguous, which is a cool thing to do as it leaves the harmonic door open a bit.
The riff is an uptown groove based upon a minor pentatonic scale that omits the third, so the chord progression itself is neither major nor minor. That can give us a fair amount of options as to how we like to approach it. I took a fairly conservative approach and kept it basically the G minor blue scale. I suggest experimenting with the natural third as well for a brighter sound.