Re: [PATCH 11/13] cifs: convert cifsFileInfo->count to non-atomic counter

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Merged.  Made trivial checkpatch cleanup.

As mentioned earlier, I don't think that this patch helps (atomic_t
type is small
on most arch and the atomic operations are single instructions), but is harmless
and don't won't to create merge conflicts with the next patch so merging this.

On Fri, Oct 15, 2010 at 2:34 PM, Jeff Layton <jlayton@xxxxxxxxxx> wrote:
> The count for cifsFileInfo is currently an atomic, but that just adds
> complexity for little value. We generally need to hold cifs_file_list_lock
> to traverse the lists anyway so we might as well make this counter
> non-atomic and simply use the cifs_file_list_lock to protect it.
>
> Signed-off-by: Jeff Layton <jlayton@xxxxxxxxxx>
> Reviewed-by: Suresh Jayaraman <sjayaraman@xxxxxxx>



-- 
Thanks,

Steve
--
To unsubscribe from this list: send the line "unsubscribe linux-cifs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux