On Wed, 23 Mar 2005, OGAWA Hirofumi wrote:
> Patrick Mochel <[EMAIL PROTECTED]> writes:
>
> > +void klist_del(struct klist_node * n)
> > +{
> > + struct klist * k = n->n_klist;
> > +
> > + spin_lock(>k_lock);
> > + klist_dec_and_del(n);
> > + spin_unlock(>k_lock);
> > +}
>
> Can't we use
Patrick Mochel <[EMAIL PROTECTED]> writes:
> +void klist_del(struct klist_node * n)
> +{
> + struct klist * k = n->n_klist;
> +
> + spin_lock(>k_lock);
> + klist_dec_and_del(n);
> + spin_unlock(>k_lock);
> +}
Can't we use atomic_dec_and_lock()?
[...]
> +void klist_remove(struct
Patrick Mochel [EMAIL PROTECTED] writes:
+void klist_del(struct klist_node * n)
+{
+ struct klist * k = n-n_klist;
+
+ spin_lock(k-k_lock);
+ klist_dec_and_del(n);
+ spin_unlock(k-k_lock);
+}
Can't we use atomic_dec_and_lock()?
[...]
+void klist_remove(struct
On Wed, 23 Mar 2005, OGAWA Hirofumi wrote:
Patrick Mochel [EMAIL PROTECTED] writes:
+void klist_del(struct klist_node * n)
+{
+ struct klist * k = n-n_klist;
+
+ spin_lock(k-k_lock);
+ klist_dec_and_del(n);
+ spin_unlock(k-k_lock);
+}
Can't we use
On Tue, 22 Mar 2005, Christoph Hellwig wrote:
> On Mon, Mar 21, 2005 at 12:48:47PM -0800, Patrick Mochel wrote:
> >
> > [EMAIL PROTECTED], 2005-03-21 11:45:16-08:00, [EMAIL PROTECTED]
> > [klist] Add initial implementation of klist helpers.
>
> > This klist interface provides a couple of
On Mon, Mar 21, 2005 at 12:48:47PM -0800, Patrick Mochel wrote:
>
> [EMAIL PROTECTED], 2005-03-21 11:45:16-08:00, [EMAIL PROTECTED]
> [klist] Add initial implementation of klist helpers.
> This klist interface provides a couple of structures that wrap around
> struct list_head to provide
On Mon, Mar 21, 2005 at 12:48:47PM -0800, Patrick Mochel wrote:
[EMAIL PROTECTED], 2005-03-21 11:45:16-08:00, [EMAIL PROTECTED]
[klist] Add initial implementation of klist helpers.
This klist interface provides a couple of structures that wrap around
struct list_head to provide
On Tue, 22 Mar 2005, Christoph Hellwig wrote:
On Mon, Mar 21, 2005 at 12:48:47PM -0800, Patrick Mochel wrote:
[EMAIL PROTECTED], 2005-03-21 11:45:16-08:00, [EMAIL PROTECTED]
[klist] Add initial implementation of klist helpers.
This klist interface provides a couple of structures
[EMAIL PROTECTED], 2005-03-21 11:45:16-08:00, [EMAIL PROTECTED]
[klist] Add initial implementation of klist helpers.
This klist interface provides a couple of structures that wrap around
struct list_head to provide explicit list "head" (struct klist) and
list "node" (struct klist_node)
[EMAIL PROTECTED], 2005-03-21 11:45:16-08:00, [EMAIL PROTECTED]
[klist] Add initial implementation of klist helpers.
This klist interface provides a couple of structures that wrap around
struct list_head to provide explicit list head (struct klist) and
list node (struct klist_node)
10 matches
Mail list logo