Linux block layer
 help / color / mirror / Atom feed
From: Jens Axboe <axboe@kernel.dk>
To: linux-block@vger.kernel.org, Ming Lei <ming.lei@redhat.com>
Cc: Yang Yang <yang.yang@vivo.com>
Subject: Re: [PATCH] lib/sbitmap: define swap_lock as raw_spinlock_t
Date: Fri, 20 Sep 2024 00:21:14 -0600	[thread overview]
Message-ID: <172681327480.42824.5229268259914084398.b4-ty@kernel.dk> (raw)
In-Reply-To: <20240919021709.511329-1-ming.lei@redhat.com>


On Thu, 19 Sep 2024 10:17:09 +0800, Ming Lei wrote:
> When called from sbitmap_queue_get(), sbitmap_deferred_clear() may be run
> with preempt disabled. In RT kernel, spin_lock() can sleep, then warning
> of "BUG: sleeping function called from invalid context" can be triggered.
> 
> Fix it by replacing it with raw_spin_lock.
> 
> 
> [...]

Applied, thanks!

[1/1] lib/sbitmap: define swap_lock as raw_spinlock_t
      commit: 65f666c6203600053478ce8e34a1db269a8701c9

Best regards,
-- 
Jens Axboe




      parent reply	other threads:[~2024-09-20  6:21 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-09-19  2:17 [PATCH] lib/sbitmap: define swap_lock as raw_spinlock_t Ming Lei
2024-09-19  9:04 ` YangYang
2024-09-20  6:21 ` Jens Axboe [this message]

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=172681327480.42824.5229268259914084398.b4-ty@kernel.dk \
    --to=axboe@kernel.dk \
    --cc=linux-block@vger.kernel.org \
    --cc=ming.lei@redhat.com \
    --cc=yang.yang@vivo.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox