I was thinking about this. I bought a couple 50 lb sacks and for what I brew I have enough for the rest of the year.Just as a general comment, if you buy European malts and to a lesser extent hops, then it's a good idea to lay in some generous stocks in the next couple of months, as the price rises down the line are going to be huge - like 50+%, I've seen commercial brewers complaining that it's like them paying retail prices!
Makes sense as grain prices are up a lot but malt also uses a lot of energy in roasting/drying, and gas prices on the Continent in particular have gone crazy due to recent events.
Far as any food shortages, what else is barley really used for besides beer? Beef and barley soup? And hops don’t have much other use. I can’t really see any food demand pulling barley away from breweries. It may get more expensive but should still be available.
Now wheat is something else. Wheat beers may get fewer, harder to find, and much more expensive if there’s a shortage because wheat has so many other uses.