Messages in this thread | | | Date | Wed, 15 Sep 2010 22:07:44 +0400 | From | Vladislav Bolkhovitin <> | Subject | Re: [PATCH 0/17]: New SCSI target framework (SCST) with dev handlers and 2 target drivers |
| |
Vladislav Bolkhovitin, on 09/15/2010 06:52 PM wrote: > It, definitely, > isn't a piece of beauty, but it's simple and works, so, I believe, good enough. User space, > anyway, is supposes to hide all the complexities of the direct SYSFS manipulations under > higher level management tools like scstadmin.
There's one more point I forgot to note why having the separate SYSFS management thread is good: it naturally serializes all SYSFS management operations, so allows to simplify locking in target drivers and dev handlers. For instance, it allows in add_target() callback don't bother if del_target() or another add_target() for the same target name called simultaneously.
Thanks, Vlad
| |