On Tue, Jun 12, 2012 at 10:33:06AM -0700, Zach Brown wrote:
>
> >#define device_name_printk(dev, level, fmt, ...) do { \
> > struct rcu_string *name; \
> > \
> > rcu_read_lock(); \
> > name = rcu_dereference(dev->name); \
> > printk(level "%s: " fmt, name->str, ##__VA_ARGS__); \
> > rcu_read_unlock(); \
> > } while (0)
>
> Right, that has the same problem of limiting flexibility in the device
> name args. That's why I gave that example of a specific macro for
> dereferencing a device name arg's rcu_string.
>
> Does this diff make it more clear? It's generated on your patch, only
> build tested..
>
Ah ok I like that better than what I had, I'll do that, thanks,
Josef
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html