All of lore.kernel.org
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
To: Jan Kara <jack@suse.cz>
Cc: kbuild-all@01.org, Ted Tso <tytso@mit.edu>,
	linux-ext4@vger.kernel.org, Thomas Gleixner <tglx@linutronix.de>,
	Peter Zijlstra <peterz@infradead.org>,
	Ingo Molnar <mingo@kernel.org>,
	Steven Rostedt <rostedt@goodmis.org>,
	Anna-Maria Gleixner <anna-maria@linutronix.de>,
	Julia Cartwright <julia@ni.com>, Jan Kara <jack@suse.cz>,
	Mark Fasheh <mark@fasheh.com>,
	Joseph Qi <joseph.qi@linux.alibaba.com>,
	Joel Becker <jlbec@evilplan.org>, Jan Kara <jack@suse.com>
Subject: Re: [PATCH 6/7] jbd2: Make state lock a spinlock
Date: Wed, 7 Aug 2019 20:57:29 +0800	[thread overview]
Message-ID: <201908072002.2367CBNe%lkp@intel.com> (raw)
In-Reply-To: <20190802151356.777-7-jack@suse.cz>

[-- Attachment #1: Type: text/plain, Size: 4215 bytes --]

Hi Jan,

I love your patch! Yet something to improve:

[auto build test ERROR on linus/master]
[cannot apply to v5.3-rc3 next-20190807]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]

url:    https://github.com/0day-ci/linux/commits/Jan-Kara/jbd2-Bit-spinlock-conversions/20190804-170656
config: i386-randconfig-h002-201931 (attached as .config)
compiler: gcc-7 (Debian 7.4.0-10) 7.4.0
reproduce:
        # save the attached .config to linux build tree
        make ARCH=i386 

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

   In file included from <command-line>:0:0:
>> include/linux/journal-head.h:29:2: error: unknown type name 'spinlock_t'
     spinlock_t b_state_lock;
     ^~~~~~~~~~

vim +/spinlock_t +29 include/linux/journal-head.h

    19	
    20	struct journal_head {
    21		/*
    22		 * Points back to our buffer_head. [jbd_lock_bh_journal_head()]
    23		 */
    24		struct buffer_head *b_bh;
    25	
    26		/*
    27		 * Protect the buffer head state
    28		 */
  > 29		spinlock_t b_state_lock;
    30	
    31		/*
    32		 * Reference count - see description in journal.c
    33		 * [jbd_lock_bh_journal_head()]
    34		 */
    35		int b_jcount;
    36	
    37		/*
    38		 * Journalling list for this buffer [b_state_lock]
    39		 * NOTE: We *cannot* combine this with b_modified into a bitfield
    40		 * as gcc would then (which the C standard allows but which is
    41		 * very unuseful) make 64-bit accesses to the bitfield and clobber
    42		 * b_jcount if its update races with bitfield modification.
    43		 */
    44		unsigned b_jlist;
    45	
    46		/*
    47		 * This flag signals the buffer has been modified by
    48		 * the currently running transaction
    49		 * [b_state_lock]
    50		 */
    51		unsigned b_modified;
    52	
    53		/*
    54		 * Copy of the buffer data frozen for writing to the log.
    55		 * [b_state_lock]
    56		 */
    57		char *b_frozen_data;
    58	
    59		/*
    60		 * Pointer to a saved copy of the buffer containing no uncommitted
    61		 * deallocation references, so that allocations can avoid overwriting
    62		 * uncommitted deletes. [b_state_lock]
    63		 */
    64		char *b_committed_data;
    65	
    66		/*
    67		 * Pointer to the compound transaction which owns this buffer's
    68		 * metadata: either the running transaction or the committing
    69		 * transaction (if there is one).  Only applies to buffers on a
    70		 * transaction's data or metadata journaling list.
    71		 * [j_list_lock] [b_state_lock]
    72		 * Either of these locks is enough for reading, both are needed for
    73		 * changes.
    74		 */
    75		transaction_t *b_transaction;
    76	
    77		/*
    78		 * Pointer to the running compound transaction which is currently
    79		 * modifying the buffer's metadata, if there was already a transaction
    80		 * committing it when the new transaction touched it.
    81		 * [t_list_lock] [b_state_lock]
    82		 */
    83		transaction_t *b_next_transaction;
    84	
    85		/*
    86		 * Doubly-linked list of buffers on a transaction's data, metadata or
    87		 * forget queue. [t_list_lock] [b_state_lock]
    88		 */
    89		struct journal_head *b_tnext, *b_tprev;
    90	
    91		/*
    92		 * Pointer to the compound transaction against which this buffer
    93		 * is checkpointed.  Only dirty buffers can be checkpointed.
    94		 * [j_list_lock]
    95		 */
    96		transaction_t *b_cp_transaction;
    97	
    98		/*
    99		 * Doubly-linked list of buffers still remaining to be flushed
   100		 * before an old transaction can be checkpointed.
   101		 * [j_list_lock]
   102		 */
   103		struct journal_head *b_cpnext, *b_cpprev;
   104	
   105		/* Trigger type */
   106		struct jbd2_buffer_trigger_type *b_triggers;
   107	
   108		/* Trigger type for the committing transaction's frozen data */
   109		struct jbd2_buffer_trigger_type *b_frozen_triggers;
   110	};
   111	

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 32942 bytes --]

  reply	other threads:[~2019-08-07 12:58 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-08-02 15:13 [PATCH 0/7] jbd2: Bit spinlock conversions Jan Kara
2019-08-02 15:13 ` [PATCH 1/7] jbd2: Simplify journal_unmap_buffer() Jan Kara
2019-08-02 15:13 ` [PATCH 2/7] jbd2: Remove jbd_trylock_bh_state() Jan Kara
2019-08-02 15:13 ` [PATCH 3/7] jbd2: Move dropping of jh reference out of un/re-filing functions Jan Kara
2019-08-02 15:13 ` [PATCH 4/7] jbd2: Drop unnecessary branch from jbd2_journal_forget() Jan Kara
2019-08-02 15:13 ` [PATCH 5/7] jbd2: Don't call __bforget() unnecessarily Jan Kara
2019-08-02 15:13 ` [PATCH 6/7] jbd2: Make state lock a spinlock Jan Kara
2019-08-07 12:57   ` kbuild test robot [this message]
2019-08-09 12:38     ` Jan Kara
2019-08-02 15:13 ` [PATCH 7/7] jbd2: Free journal head outside of locked region Jan Kara
2019-08-02 20:46 ` [PATCH 0/7] jbd2: Bit spinlock conversions Thomas Gleixner
  -- strict thread matches above, loose matches on Subject: below --
2019-08-09 12:42 [PATCH 0/7 v2] " Jan Kara
2019-08-09 12:42 ` [PATCH 6/7] jbd2: Make state lock a spinlock Jan Kara

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201908072002.2367CBNe%lkp@intel.com \
    --to=lkp@intel.com \
    --cc=anna-maria@linutronix.de \
    --cc=jack@suse.com \
    --cc=jack@suse.cz \
    --cc=jlbec@evilplan.org \
    --cc=joseph.qi@linux.alibaba.com \
    --cc=julia@ni.com \
    --cc=kbuild-all@01.org \
    --cc=linux-ext4@vger.kernel.org \
    --cc=mark@fasheh.com \
    --cc=mingo@kernel.org \
    --cc=peterz@infradead.org \
    --cc=rostedt@goodmis.org \
    --cc=tglx@linutronix.de \
    --cc=tytso@mit.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.