b=20740
i=alexey.lyashkov
i=andrew.perepechko
replace client_obd_list_is_locked and the corresponding assertions
in the osc code by ASSERT_SPIN_LOCKED() because the first doesn't
work correctly w/o CONFIG_SMP on.
static inline void client_obd_list_lock_done(client_obd_lock_t *lock)
{}
-
-static inline int client_obd_list_is_locked(client_obd_lock_t *lock)
-{
- return spin_is_locked(&lock->lock);
-}
-
#if defined(__KERNEL__) && !defined(HAVE_ADLER)
/* zlib_adler() is an inline function defined in zutil.h */
#define HAVE_ADLER
static void osc_consume_write_grant(struct client_obd *cli,
struct brw_page *pga)
{
- LASSERT(client_obd_list_is_locked(&cli->cl_loi_list_lock));
+ LASSERT_SPIN_LOCKED(&cli->cl_loi_list_lock.lock);
LASSERT(!(pga->flag & OBD_BRW_FROM_GRANT));
atomic_inc(&obd_dirty_pages);
cli->cl_dirty += CFS_PAGE_SIZE;
int blocksize = cli->cl_import->imp_obd->obd_osfs.os_bsize ? : 4096;
ENTRY;
- LASSERT(client_obd_list_is_locked(&cli->cl_loi_list_lock));
+ LASSERT_SPIN_LOCKED(&cli->cl_loi_list_lock.lock);
if (!(pga->flag & OBD_BRW_FROM_GRANT)) {
EXIT;
return;